Skip to content

Commit

Permalink
ci: Use mise-en-place to manage Swift versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jbmorley committed Feb 13, 2025
1 parent 6895bad commit 84900a5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
fetch-depth: 0
lfs: true

- name: Install the tool dependencies
uses: jdx/mise-action@v2

- name: Build, test, and release
run: |
scripts/build-ubuntu.sh
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
swift 6.0
9 changes: 0 additions & 9 deletions scripts/build-ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,6 @@ set -o pipefail
set -x
set -u

export SWIFT_BIN=$PWD/swift-5.10-RELEASE-ubuntu22.04/usr/bin

if [ ! -d "$SWIFT_BIN" ] ; then
curl -O https://download.swift.org/swift-5.10-release/ubuntu2204/swift-5.10-RELEASE/swift-5.10-RELEASE-ubuntu22.04.tar.gz
tar -zxvf swift-5.10-RELEASE-ubuntu22.04.tar.gz
fi

export PATH=$PATH:$SWIFT_BIN

# Remove the build directory if it exists to force a full rebuild.
if [ -d .build ] ; then
rm -rf .build
Expand Down

0 comments on commit 84900a5

Please sign in to comment.