Lion:
You have to provide a slip joint btwn. the top of the wall and the trusses, so as to provide lateral support for the top of the wall, but still allow these vert. truss movements. We used to do this with a blocking means on the top plate of the wall, at each truss, but always got a fight from the builder and carpenters for this extra work. Simpson and USP now provide a piece of “L” shaped hardware which does this, with slots in the vert. leg, loose nailed to the truss bot. chord, and solid nailed to the wall top plate. I’ve actually seen walls hard nailed at the trusses, lifted right off the floor below when the trusses lifted up, there was a 1/4"+ gap btwn. the bot. pl. and the sub-fl.
Regarding the ceiling sht.rk....: in its crudest form, nail a 1x6 x 20" long flat to the top of the wall, btwn. each set of trusses, and nail/screw the clg. sht.rk. to this, or at least push the wall sht.rk. up under the clg. sht.rk. and up to this blocking. But, then do not nail the sht.rk. to the trusses until you get 16-18" away from the walls. This allows the sht.rk. to flex without popping nails and with less likelihood of cracking significantly at the walls. A small cove molding or some such nailed to the wall, but not the clg. will hide this joint. You can’t nail to the clg. because the trusses move and this joint does not. In some cases a larger cove molding can be nailed only to the clg. (to move with the clg.) and be allowed to slide vertically at the wall or on another flat piece of molding affixed to the wall. This joint may show the movement in paint or stain discoloration from behind the lower toe of the cove. The above works pretty well along the length of the wall which is perpendicular to the trusses. The most difficult detail area is at the end of the wall which goes up to the clg. where you have to let the clg. sht.rk. flex on both sides and for about 16-18" beyond the end of the wall. And, you want to avoid sht.rk joints in this immediate area too, if you can.