Skip to content

Commit d156330

Browse files
Copilotmxcl
andcommitted
Fix CI: update to actions/checkout@v4, remove macos-15, separate legacy Swift versions
Co-authored-by: mxcl <58962+mxcl@users.noreply.github.com>
1 parent 369e2a7 commit d156330

1 file changed

Lines changed: 25 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
verify-linuxmain:
1313
runs-on: macos-13
1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v4
1616
- run: swift test --generate-linuxmain
1717
- run: git diff --exit-code
1818

@@ -23,14 +23,13 @@ jobs:
2323
os:
2424
- macos-13
2525
- macos-14
26-
- macos-15
2726
platform:
2827
- iOS
2928
- tvOS
3029
- macOS
3130
- watchOS
3231
steps:
33-
- uses: actions/checkout@v2
32+
- uses: actions/checkout@v4
3433
- uses: mxcl/xcodebuild@v1
3534
with:
3635
platform: ${{ matrix.platform }}
@@ -43,10 +42,6 @@ jobs:
4342
strategy:
4443
matrix:
4544
swift:
46-
- swift:4.2
47-
- swift:5.0
48-
- swift:5.1
49-
- swift:5.2
5045
- swift:5.3
5146
- swift:5.4
5247
- swift:5.5
@@ -58,7 +53,7 @@ jobs:
5853
container:
5954
image: ${{ matrix.swift }}
6055
steps:
61-
- uses: actions/checkout@v2
56+
- uses: actions/checkout@v4
6257

6358
- run: useradd -ms /bin/bash mxcl
6459
- run: chown -R mxcl .
@@ -93,3 +88,25 @@ jobs:
9388
if: ${{ steps.swift.outputs.marketing-version > 5 }}
9489
with:
9590
file: ./info.lcov
91+
92+
linux-legacy:
93+
runs-on: ubuntu-latest
94+
strategy:
95+
matrix:
96+
swift:
97+
- swift:4.2
98+
- swift:5.0
99+
- swift:5.1
100+
- swift:5.2
101+
container:
102+
image: ${{ matrix.swift }}
103+
steps:
104+
- uses: actions/checkout@v3
105+
# Using v3 instead of v4 because v4 requires node20 which needs glibc 2.28+
106+
# These old Swift containers (Ubuntu 18.04) only have glibc 2.27
107+
108+
- run: useradd -ms /bin/bash mxcl
109+
- run: chown -R mxcl .
110+
# ^^ we need to be a normal user and not root for the tests to be valid
111+
112+
- run: su mxcl -c "swift test --parallel"

0 commit comments

Comments
 (0)