Skip to content

Commit be3f1c5

Browse files
Copilotmxcl
andcommitted
Fix CI: manual git checkout for legacy Swift, move 5.3 to legacy, remove macOS 14
Co-authored-by: mxcl <58962+mxcl@users.noreply.github.com>
1 parent d156330 commit be3f1c5

1 file changed

Lines changed: 15 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,9 @@ jobs:
1717
- run: git diff --exit-code
1818

1919
apple:
20-
runs-on: ${{ matrix.os }}
20+
runs-on: macos-13
2121
strategy:
2222
matrix:
23-
os:
24-
- macos-13
25-
- macos-14
2623
platform:
2724
- iOS
2825
- tvOS
@@ -42,7 +39,6 @@ jobs:
4239
strategy:
4340
matrix:
4441
swift:
45-
- swift:5.3
4642
- swift:5.4
4743
- swift:5.5
4844
- swift:5.6
@@ -98,11 +94,23 @@ jobs:
9894
- swift:5.0
9995
- swift:5.1
10096
- swift:5.2
97+
- swift:5.3
10198
container:
10299
image: ${{ matrix.swift }}
103100
steps:
104-
- uses: actions/checkout@v3
105-
# Using v3 instead of v4 because v4 requires node20 which needs glibc 2.28+
101+
- name: Checkout code
102+
run: |
103+
apt-get update && apt-get install -y git
104+
git clone --depth 1 --branch ${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} https://github.com/$GITHUB_REPOSITORY .git-tmp || \
105+
git clone --depth 1 https://github.com/$GITHUB_REPOSITORY .git-tmp
106+
cd .git-tmp
107+
git fetch origin $GITHUB_SHA
108+
git checkout $GITHUB_SHA
109+
cd ..
110+
mv .git-tmp/* .
111+
mv .git-tmp/.git .
112+
rm -rf .git-tmp
113+
# Manual checkout because actions/checkout@v3 and v4 both require node20 with glibc 2.28+
106114
# These old Swift containers (Ubuntu 18.04) only have glibc 2.27
107115

108116
- run: useradd -ms /bin/bash mxcl

0 commit comments

Comments
 (0)