Skip to content

Commit 22a682a

Browse files
CI: Enable Swift 5.5 Linux builds (#23)
* CI: Enable Swift 5.5 Linux builds * Update README.md * Don't compile symbols for Linux that are not yet available (#22) Co-authored-by: Stephen Celis <[email protected]>
1 parent efe3b37 commit 22a682a

File tree

2 files changed

+21
-9
lines changed

2 files changed

+21
-9
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,15 @@ jobs:
3232
linux:
3333
name: Ubuntu
3434
runs-on: ubuntu-latest
35+
strategy:
36+
matrix:
37+
swift:
38+
- 5.4
39+
- 5.5
3540
steps:
3641
- uses: actions/checkout@v2
3742
- name: Run tests
38-
run: make test-linux
43+
run: make test-linux-${{ matrix.swift }}
3944

4045
windows:
4146
name: Windows

Makefile

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,22 @@ PLATFORM_MAC_CATALYST = macOS,variant=Mac Catalyst
44
PLATFORM_TVOS = tvOS Simulator,name=Apple TV 4K (at 1080p)
55
PLATFORM_WATCHOS = watchOS Simulator,name=Apple Watch Series 4 - 44mm
66

7-
test-all: test-linux test-swift test-platforms
7+
test-all: test-linux-all test-swift test-platforms
88

9-
test-linux:
10-
docker run \
11-
--rm \
12-
-v "$(PWD):$(PWD)" \
13-
-w "$(PWD)" \
14-
swift:5.4 \
15-
bash -c 'make test-swift'
9+
test-linux-all: test-linux-5.4 test-linux-5.5
10+
11+
test-linux-5.4:
12+
$(call test-linux,5.4)
13+
14+
test-linux-5.5:
15+
$(call test-linux,5.5)
16+
17+
test-linux = docker run \
18+
--rm \
19+
-v "$(PWD):$(PWD)" \
20+
-w "$(PWD)" \
21+
swift:$(1) \
22+
bash -c 'make test-swift'
1623

1724
test-swift:
1825
swift test \

0 commit comments

Comments
 (0)