summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-12-10 03:57:40 +0000
committerSam James <sam@gentoo.org>2024-12-10 04:36:16 +0000
commit54cab0910e26e82f5d4cd7c087781ed7826d649a (patch)
treeb92a9b5d2c72aceec0c24e87945956a8a5951fb8 /.github
parent8578a995ae45ff737e25b8ff9d8ab0abe8d3b64c (diff)
downloadmeson-54cab0910e26e82f5d4cd7c087781ed7826d649a.tar.gz
ci: fix Ubuntu Bionic job
Do the same as https://github.com/pytorch/test-infra/pull/5959 and download an old nodejs to keep Ubuntu Bionic working. Bug: https://github.com/actions/checkout/issues/1809 Bug: https://github.com/actions/runner/issues/3373
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/os_comp.yml23
1 files changed, 14 insertions, 9 deletions
diff --git a/.github/workflows/os_comp.yml b/.github/workflows/os_comp.yml
index 0830a05e5..0912a750a 100644
--- a/.github/workflows/os_comp.yml
+++ b/.github/workflows/os_comp.yml
@@ -26,12 +26,6 @@ on:
- ".github/workflows/os_comp.yml"
- "run*tests.py"
-# make GHA actions use node16 which still works with bionic
-# See https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
-# Unclear how long this will work though
-env:
- ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
-
permissions:
contents: read
@@ -49,13 +43,24 @@ jobs:
- { name: Gentoo, id: gentoo }
- { name: OpenSUSE, id: opensuse }
- { name: Ubuntu Bionic, id: bionic }
- container: mesonbuild/${{ matrix.cfg.id }}:latest
+ container:
+ image: mesonbuild/${{ matrix.cfg.id }}:latest
+ volumes:
+ - ${{ matrix.cfg.id == 'bionic' && '/node20217:/node20217:rw,rshared' || ' ' }}
+ - ${{ matrix.cfg.id == 'bionic' && '/node20217:/__e/node20:ro,rshared' || ' ' }}
env:
MESON_CI_JOBNAME: linux-${{ matrix.cfg.id }}-gcc
steps:
- # Need v3 because of bionic
- - uses: actions/checkout@v3
+ - name: install nodejs20glibc2.17
+ if: ${{ matrix.cfg.id == 'bionic' }}
+ run: |
+ apt install curl -y
+ curl -LO https://unofficial-builds.nodejs.org/download/release/v20.9.0/node-v20.9.0-linux-x64-glibc-217.tar.xz
+ tar -xf node-v20.9.0-linux-x64-glibc-217.tar.xz --strip-components 1 -C /node20217
+ ldd /__e/node20/bin/node
+ - uses: actions/checkout@v4
+
- name: Run tests
# All environment variables are stored inside the docker image in /ci/env_vars.sh
# They are defined in the `env` section in each image.json. CI_ARGS should be set