Skip to content

Commit b508625

Browse files
committed
use triple
1 parent 5f1dd10 commit b508625

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,25 @@ jobs:
4444
run: swift test -v
4545

4646
static-linux-sdk-build:
47-
name: Linux Static SDK Build (${{ matrix.swift-version }} - ${{ matrix.os }})
47+
name: Linux Static SDK Build (${{ matrix.swift-version }} - ${{ matrix.triple }})
4848
strategy:
4949
matrix:
5050
os: [ubuntu-latest]
5151
swift-version:
5252
- 6.1.2
53+
--triple:
54+
- aarch64-swift-linux-musl
55+
- x86_64-swift-linux-musl
5356
runs-on: ${{ matrix.os }}
5457
container: swift:${{ matrix.swift-version }}-noble
5558
timeout-minutes: 30
5659
steps:
5760
- name: Check out code
5861
uses: actions/checkout@v4
5962
- name: Install static SDK and build
63+
env:
64+
BUILD_FLAGS: --triple ${{ matrix.triple }}
6065
run: |
6166
which curl || (apt -q update && apt -yq install curl)
6267
curl -s --retry 3 https://raw.githubusercontent.com/swiftlang/github-workflows/refs/heads/main/.github/workflows/scripts/install-and-build-with-sdk.sh | \
63-
bash -s -- --static ${{ matrix.swift-version }}
68+
bash -s -- --static --flags="$BUILD_FLAGS" ${{ matrix.swift-version }}

0 commit comments

Comments
 (0)