Skip to content

Commit 2a2696f

Browse files
committed
Modernize Swift CI and drop armv7 jobs
Follow the junkbot-swift CI layout: macOS on macos-26 and Linux across a swift:latest + nightly container matrix, each building and testing debug and release with actions/checkout@v4. Remove the Buildroot and Linux armv7 cross-compile workflows, which were failing.
1 parent 8b88ee6 commit 2a2696f

3 files changed

Lines changed: 29 additions & 78 deletions

File tree

‎.github/workflows/buildroot.yml‎

Lines changed: 0 additions & 26 deletions
This file was deleted.

‎.github/workflows/swift-arm.yml‎

Lines changed: 0 additions & 24 deletions
This file was deleted.

‎.github/workflows/swift.yml‎

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,44 @@ name: Swift
33
on: [push]
44

55
jobs:
6-
mac:
6+
macos:
77
name: macOS
8-
runs-on: macos-latest
8+
runs-on: macos-26
9+
strategy:
10+
matrix:
11+
config: ["debug", "release"]
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
- name: Swift Version
16+
run: swift --version
17+
- name: Build
18+
run: swift build -c ${{ matrix.config }}
19+
- name: Test
20+
run: swift test -c ${{ matrix.config }}
21+
22+
linux:
23+
name: Linux (${{ matrix.container }})
24+
runs-on: ubuntu-latest
25+
strategy:
26+
fail-fast: false
27+
matrix:
28+
container: ["swift:latest", "swiftlang/swift:nightly-noble"]
29+
config: ["debug", "release"]
30+
container: ${{ matrix.container }}
931
steps:
1032
- name: Checkout
1133
uses: actions/checkout@v4
1234
- name: Swift Version
1335
run: swift --version
14-
- name: Build (Debug)
15-
run: swift build -c debug
16-
- name: Build (Release)
17-
run: swift build -c release
18-
- name: Test (Debug)
19-
run: swift test --configuration debug
36+
- name: Build
37+
run: swift build -c ${{ matrix.config }}
38+
- name: Test
39+
run: swift test -c ${{ matrix.config }}
2040

2141
coverage:
2242
name: Code Coverage
23-
runs-on: macos-latest
43+
runs-on: macos-26
2444
permissions:
2545
contents: read
2646
code-quality: write # required by actions/upload-code-coverage
@@ -48,22 +68,3 @@ jobs:
4868
name: code-coverage
4969
path: .build/coverage/
5070
if-no-files-found: error
51-
52-
linux:
53-
name: Linux
54-
strategy:
55-
matrix:
56-
swift: [6.3.3]
57-
runs-on: ubuntu-latest
58-
container: swift:${{ matrix.swift }}
59-
steps:
60-
- name: Checkout
61-
uses: actions/checkout@v4
62-
- name: Swift Version
63-
run: swift --version
64-
- name: Build (Debug)
65-
run: swift build -c debug
66-
- name: Build (Release)
67-
run: swift build -c release
68-
- name: Test (Debug)
69-
run: swift test --configuration debug

0 commit comments

Comments
 (0)