Skip to content

Commit 54a59e1

Browse files
authored
Update CI environment (#321)
* Update CI environment * Add linker helper * Add more search path
1 parent f33546e commit 54a59e1

3 files changed

Lines changed: 26 additions & 15 deletions

File tree

.github/workflows/builds.yml

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,34 @@ on:
88

99
jobs:
1010
run:
11-
name: Test on ${{ matrix.os }} with swift${{ matrix.swift }}
11+
name: Test on ${{ matrix.os }} - ${{ matrix.version }}
1212
runs-on: ${{ matrix.os }}
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
os: [macos-latest, ubuntu-latest]
17-
swift: ["5.10", "6.0", "6.1"]
16+
include:
17+
- os: ubuntu-latest
18+
version: "5.10"
19+
- os: ubuntu-latest
20+
version: "6.0"
21+
- os: ubuntu-latest
22+
version: "6.1"
23+
- os: ubuntu-latest
24+
version: "6.2"
25+
- os: macos-latest
26+
version: "16.2" # Swift 6.0
27+
- os: macos-latest
28+
version: "16.4" # Swift 6.1
29+
- os: macos-latest
30+
version: "26.1" # Swift 6.2
1831
steps:
1932
- if: startsWith(matrix.os, 'ubuntu')
2033
uses: vapor/swiftly-action@v0.2
2134
with:
22-
toolchain: ${{ matrix.swift }}
35+
toolchain: ${{ matrix.version }}
2336
- if: startsWith(matrix.os, 'macos')
24-
uses: swift-actions/setup-swift@v2
25-
with:
26-
swift-version: ${{ matrix.swift }}
37+
name: Select Xcode
38+
run: sudo xcode-select -s "/Applications/Xcode_${{ matrix.version }}.app"
2739

2840
- name: Checkout
2941
uses: actions/checkout@v4

.github/workflows/release.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ on:
55
release:
66
types: [published]
77

8-
env:
9-
SWIFT_VERSION: "6.1.0"
10-
118
jobs:
129
build:
1310
name: Build for ${{ matrix.destination.name }}
@@ -22,9 +19,9 @@ jobs:
2219
- if: startsWith(matrix.destination.name, 'ubuntu')
2320
uses: vapor/swiftly-action@v0.2
2421
with:
25-
toolchain: ${{ env.SWIFT_VERSION }}
22+
toolchain: "6.2"
2623
- if: startsWith(matrix.destination.name, 'macos')
27-
run: sudo xcode-select -s /Applications/Xcode_16.3.app
24+
run: sudo xcode-select -s /Applications/Xcode_26.1.app
2825

2926
- uses: actions/checkout@v4
3027
- name: Create the binary
@@ -47,9 +44,9 @@ jobs:
4744
- { name: "ubuntu-x86_64", os: ubuntu-22.04 }
4845
- { name: "ubuntu-aarch64", os: ubuntu-24.04-arm }
4946
- { name: "ubuntu-aarch64", os: ubuntu-22.04-arm }
47+
- { name: "macos-universal", os: macos-26 }
5048
- { name: "macos-universal", os: macos-15 }
5149
- { name: "macos-universal", os: macos-14 }
52-
- { name: "macos-universal", os: macos-13 }
5350
steps:
5451
- uses: actions/download-artifact@v4
5552
with:
@@ -77,7 +74,7 @@ jobs:
7774
with:
7875
name: mockolo.artifactbundle.zip
7976
path: mockolo.artifactbundle.zip
80-
77+
8178
- name: Compute checksum
8279
id: checksum
8380
run: echo "checksum=$(swift package compute-checksum mockolo.artifactbundle.zip)" >> "$GITHUB_OUTPUT"

install-script.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ echo "OUTPUT FILE = ${OUTFILE}"
6565
cd "$SRCDIR"
6666
rm -rf .build
6767
case $(uname -s) in
68-
Linux*) swift build -c release
68+
Linux*) swift build -c release \
69+
-Xlinker -rpath -Xlinker /usr/lib/swift/linux \
70+
-Xlinker -rpath -Xlinker /usr/share/swift/usr/lib/swift/linux
6971
cd .build/release;;
7072
Darwin*) swift build -c release --arch arm64 --arch x86_64
7173
cd .build/apple/Products/Release;;

0 commit comments

Comments
 (0)