Enable building with the Swift Linux SDK (#151)
This commit is contained in:
parent
e76d61155b
commit
e019cb6909
1 changed files with 25 additions and 2 deletions
21
.github/workflows/ci.yml
vendored
21
.github/workflows/ci.yml
vendored
|
|
@ -42,3 +42,24 @@ jobs:
|
|||
|
||||
- name: Run tests
|
||||
run: swift test -v
|
||||
|
||||
static-linux-sdk-build:
|
||||
name: Linux Static SDK Build (${{ matrix.swift-version }} - ${{ matrix.os }})
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
swift-version:
|
||||
- 6.1.2
|
||||
runs-on: ${{ matrix.os }}
|
||||
container: swift:${{ matrix.swift-version }}-noble
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v4
|
||||
- name: Install static SDK and build
|
||||
env:
|
||||
BUILD_FLAGS: ""
|
||||
run: |
|
||||
which curl || (apt -q update && apt -yq install curl)
|
||||
curl -s --retry 3 https://raw.githubusercontent.com/swiftlang/github-workflows/refs/heads/main/.github/workflows/scripts/install-and-build-with-sdk.sh | \
|
||||
bash -s -- --static --flags="$BUILD_FLAGS" ${{ matrix.swift-version }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue