If your foundation is faith in Jesus finished work on the cross for the remission of your sins, his ressurection and ascension to heaven. If you are sealed with God's holy spirit than you WILL BE SAVED, even if all your works burn up in the fire. God will pull you out, like He did Daniel's three friends.
However if your works stand and are gold or silver,you will get a reward in Heaven. This is the crown Paul races for, NOT salvation.
******
1 Corinthians 3
10According to the grace of God given to me, like a skilledb master builder I laid a foundation, and someone else is building upon it. Let each one take care how he builds upon it. 11For no one can lay a foundation other than that which is laid, which is Jesus Christ. 12Now if anyone builds on the foundation with gold, silver, precious stones, wood, hay, straw— 13each one’s work will become manifest, for the Day will disclose it, because it will be revealed by fire, and the fire will test what sort of work each one has done. 14If the work that anyone has built on the foundation survives, he will receive a reward. 15If anyone’s work is burned up, he will suffer loss, though he himself will be saved, but only as through fire.