Meta: Record desired swift toolchain version in .swift-version

This makes it easier to ensure everyone is using the same version of
Swift when building the project, especially for CI environments.

`swiftly install` will automatically read this file and install the
specified version if it is not already installed. It also tells swiftly
what version to use for the project, independent of the global default
version.
This commit is contained in:
Andrew Kaster 2025-06-10 06:24:30 -06:00 committed by Andrew Kaster
commit 0b7a6ef4c9
Notes: github-actions[bot] 2025-06-11 17:56:16 +00:00
3 changed files with 3 additions and 2 deletions

View file

@ -107,7 +107,8 @@ runs:
echo "swiftly version: $(swiftly --version)" >&2
swiftly install --use main-snapshot-2025-05-26
# installs version listed in .swift-version
swiftly install
swiftly list
- name: 'Install Dependencies'

1
.gitignore vendored
View file

@ -27,7 +27,6 @@ output/
.vim/
.exrc
.helix/
.swift-version
# Environments
.venv/

1
.swift-version Normal file
View file

@ -0,0 +1 @@
main-snapshot-2025-06-03