Skip to content

Commit d0e2926

Browse files
hack version of node to allow checkout to run on older glibc
1 parent cd78539 commit d0e2926

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,22 @@ jobs:
1717
container:
1818
image: ubuntu:16.04
1919
options: --user root
20+
volumes:
21+
# override /__e/node20 because GitHub Actions uses a version that requires too-recent glibc
22+
# see "Install node.js for GitHub Actions" below
23+
- /tmp:/__e/node20
2024

2125
steps:
2226
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
27+
- name: foo
28+
run: |
29+
apt-get install -y curl ca-certificates &&
30+
# Install a Node.js version that works in older Ubuntu containers (read: does not require very recent glibc)
31+
NODE_VERSION=v20.18.1 &&
32+
NODE_TAR_FILE=node-$NODE_VERSION-linux-x64-glibc-217.tar.gz &&
33+
NODE_URL=https://unofficial-builds.nodejs.org/download/release/$NODE_VERSION/$NODE_TAR_FILE &&
34+
curl -Lo /tmp/$NODE_TAR_FILE $NODE_URL &&
35+
tar -C /__e/node20 -x --strip-components=1 -f /tmp/$NODE_TAR_FILE
2336
- uses: actions/checkout@v2
2437
with:
2538
submodules: recursive

0 commit comments

Comments
 (0)