Skip to content

Commit 48a1b82

Browse files
authored
Fix CI build for Ubuntu 18.04 (#246)
Pull the code manually in the gcc-6/Ubuntu-18.04 stage as the Github checkout action now uses an incompatible Node.js version
1 parent 1969a3c commit 48a1b82

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,20 @@ jobs:
4747
os: macos-latest
4848

4949
steps:
50-
- uses: actions/checkout@v3
50+
- name: Checkout
51+
uses: actions/checkout@v4
52+
if: matrix.name != 'gcc-6'
53+
54+
- name: Checkout (Ubuntu 18.04)
55+
if: matrix.name == 'gcc-6'
56+
# Recent versions of Github's checkout action do not run on older Ubuntu versions because they use a too recent
57+
# Node.js version. Thus, we have to checkout the code manually.
58+
run: |
59+
apt-get update
60+
apt-get install -y git
61+
git config --global --add safe.directory '*'
62+
git clone "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}" .
63+
git checkout $GITHUB_HEAD_REF
5164
5265
- name: Setup (macOS)
5366
if: matrix.name == 'clang-macOS'

0 commit comments

Comments
 (0)