File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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
You can’t perform that action at this time.
0 commit comments