The solution depends on whether you have a B or C residence permit. If you have B, then you pay the withholding tax from your salary. You don't declare your other income and you don't pay tax on it in Switzerland.
With residence permit C, you are a resident of Switzerland who is subject to Swiss income and profit tax. You have to fill in the whole tax return. There is an additional form DA-1 that you have to fill in.