Skip to content

Commit b7fadf1

Browse files
committed
unfortunately SwiftyLab/setup-swift does not seem to have the 5.10.1 toolchain
1 parent a7c09ab commit b7fadf1

File tree

1 file changed

+38
-35
lines changed

1 file changed

+38
-35
lines changed

.github/workflows/build.yml

Lines changed: 38 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -10,46 +10,49 @@ jobs:
1010
build-macos:
1111
runs-on: macos-14
1212
steps:
13-
- uses: actions/checkout@v3
14-
- uses: SwiftyLab/setup-swift@latest
15-
with:
16-
swift-version: "5.10.1"
17-
- name: build
18-
run: |
19-
swift --version
20-
swift build
21-
swift test
13+
- name: Checkout repository
14+
uses: actions/checkout@v3
15+
16+
- name: build
17+
run: |
18+
swift --version
19+
swift build
20+
swift test
2221
2322
benchmark-macos:
2423
runs-on: macos-14
2524
steps:
26-
- uses: actions/checkout@v3
27-
- uses: SwiftyLab/setup-swift@latest
28-
with:
29-
swift-version: "5.10.1"
30-
- name: Homebrew Mac
31-
if: ${{ runner.os == 'Macos' }}
32-
run: |
33-
echo "/opt/homebrew/bin:/usr/local/bin" >> $GITHUB_PATH
34-
brew install jemalloc
35-
- name: Ubuntu deps
36-
if: ${{ runner.os == 'Linux' }}
37-
run: |
38-
sudo apt-get install -y libjemalloc-dev
39-
- name: benchmark
40-
run: |
41-
cd ExternalBenchmarks
42-
swift package benchmark
25+
- name: Checkout repository
26+
uses: actions/checkout@v3
27+
28+
- name: Homebrew Mac
29+
if: ${{ runner.os == 'Macos' }}
30+
run: |
31+
echo "/opt/homebrew/bin:/usr/local/bin" >> $GITHUB_PATH
32+
brew install jemalloc
33+
- name: Ubuntu deps
34+
if: ${{ runner.os == 'Linux' }}
35+
run: |
36+
sudo apt-get install -y libjemalloc-dev
37+
- name: benchmark
38+
run: |
39+
cd ExternalBenchmarks
40+
swift package benchmark
4341
4442
build-linux:
4543
runs-on: ubuntu-24.04
4644
steps:
47-
- uses: actions/checkout@v3
48-
- uses: SwiftyLab/setup-swift@latest
49-
with:
50-
swift-version: "5.10.1"
51-
- name: build
52-
run: |
53-
swift --version
54-
swift build -c release
55-
swift test
45+
- name: Install Swift
46+
uses: tayloraswift/swift-install-action@master
47+
with:
48+
swift-prefix: "swift-5.10.1-release/ubuntu2404/swift-5.10.1-RELEASE"
49+
swift-id: "swift-5.10.1-RELEASE-ubuntu24.04"
50+
51+
- name: Checkout repository
52+
uses: actions/checkout@v3
53+
54+
- name: Build and test
55+
run: |
56+
swift --version
57+
swift build -c release
58+
swift test

0 commit comments

Comments
 (0)