Skip to content

Commit 0e6727f

Browse files
committed
Add CI workflow for macOS and Linux
1 parent 8008dae commit 0e6727f

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

‎.github/workflows/swift.yml‎

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Swift
2+
on: [push]
3+
jobs:
4+
5+
macos:
6+
name: macOS
7+
runs-on: macos-26
8+
strategy:
9+
fail-fast: false
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 }}
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v4
34+
- name: Swift Version
35+
run: swift --version
36+
- name: Build
37+
run: swift build -c ${{ matrix.config }}
38+
- name: Test
39+
run: swift test -c ${{ matrix.config }}

0 commit comments

Comments
 (0)