I compile in a Docker, and deploy the resulting image (multi-step docker file, first step for compilation, second step copy the resulting binaries).
Installing Swift on Linux is a one-liner now if you want to avoid Docker https://swift-server.github.io/swiftly/. EDIT: Two-liners actually: first install swiftly then install Swift…
“sudo dnf install swiftlang” is all it takes to get started.
https://developer.fedoraproject.org/tech/languages/swift/swi...
VSCode works pretty well with the sswg extension (powered by sourcekit-lsp). Devcontainers are particularly nice if you are into that sort of thing (I develop in a Linux container on a macOS host). I actually find it easier to experiment with new toolchains (for example, the nightlies) in the Linux container than on my host machine (which requires more manual setup).