From 0b7a6ef4c946e119c0c867e64bf2763f5e9da834 Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Tue, 10 Jun 2025 06:24:30 -0600 Subject: [PATCH] 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. --- .github/actions/setup/action.yml | 3 ++- .gitignore | 1 - .swift-version | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 .swift-version diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 7ed3b1b533b..7e87d8d4094 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -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' diff --git a/.gitignore b/.gitignore index f336708364b..a01e5a08452 100644 --- a/.gitignore +++ b/.gitignore @@ -27,7 +27,6 @@ output/ .vim/ .exrc .helix/ -.swift-version # Environments .venv/ diff --git a/.swift-version b/.swift-version new file mode 100644 index 00000000000..15ce20b4aa3 --- /dev/null +++ b/.swift-version @@ -0,0 +1 @@ +main-snapshot-2025-06-03 \ No newline at end of file