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