Skip to content

Commit 5c99112

Browse files
committed
Build and test with static Linux SDK for latest Swift 6.1
1 parent 1fabf88 commit 5c99112

1 file changed

Lines changed: 7 additions & 12 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -72,24 +72,22 @@ jobs:
7272
run: swift test -v
7373

7474
build-for-alpine:
75-
name: Build for Alpine (Ubuntu, Swift ${{ matrix.swift-version }})
75+
name: Build for Alpine (Ubuntu, Swift 6.1)
7676
needs: setup
77-
strategy:
78-
matrix:
79-
swift-version: ${{ fromJson(needs.setup.outputs.swift-versions) }}
8077
runs-on: ubuntu-latest
8178
steps:
8279
- uses: actions/checkout@v4
8380

8481
- name: Setup Swift
8582
uses: vapor/swiftly-action@v0.2
8683
with:
87-
toolchain: ${{ matrix.swift-version }}
84+
toolchain: 6.1.0
8885

8986
- name: Install Static Linux SDK
9087
run: |
9188
# Install the static Linux SDK for musl target
92-
swift sdk install --swift-version $SWIFT_VERSION static-linux
89+
# https://www.swift.org/install/linux/debian/12/#versions
90+
swift sdk install https://download.swift.org/swift-6.1-release/static-sdk/swift-6.1-RELEASE/swift-6.1-RELEASE_static-linux-0.0.1.artifactbundle.tar.gz --checksum 111c6f7d280a651208b8c74c0521dd99365d785c1976a6e23162f55f65379ac6
9391
9492
# Verify installation
9593
swift sdk list
@@ -103,15 +101,12 @@ jobs:
103101
- name: Upload build artifacts
104102
uses: actions/upload-artifact@v4
105103
with:
106-
name: alpine-binaries-${{ matrix.swift-version }}
104+
name: alpine-binaries-6.1.0
107105
path: .build/x86_64-swift-linux-musl/debug
108106

109107
test-alpine:
110-
name: Test (Alpine, Swift ${{ matrix.swift-version }})
108+
name: Test (Alpine, Swift 6.1)
111109
needs: [setup, build-for-alpine]
112-
strategy:
113-
matrix:
114-
swift-version: ${{ fromJson(needs.setup.outputs.swift-versions) }}
115110
runs-on: ubuntu-latest
116111
timeout-minutes: 5
117112
container: alpine:latest
@@ -121,7 +116,7 @@ jobs:
121116
- name: Download compiled binaries
122117
uses: actions/download-artifact@v4
123118
with:
124-
name: alpine-binaries-${{ matrix.swift-version }}
119+
name: alpine-binaries-6.1.0
125120
path: .build/debug
126121

127122
- name: Set permissions

0 commit comments

Comments
 (0)