Skip to content

Commit bf8d768

Browse files
committed
Fix GitHub Actions for CentOS container
Node 16 support is removed and Node 20 requires a newer GLibc. Install an unofficial Node 20 that is build against GLibc 2.17
1 parent 9adcc1a commit bf8d768

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

.github/workflows/end2end.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,17 @@ jobs:
1818
fail-fast: false
1919
container:
2020
image: ghcr.io/easybuilders/${{ matrix.container }}-amd64
21-
env: {ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true} # Allow using Node16 actions
21+
volumes:
22+
- /node20217:/node20217:rw,rshared
23+
- ${{ matrix.container == 'centos-7.9' && '/node20217:/__e/node20:ro,rshared' || ' ' }}
2224
steps:
25+
- name: install nodejs20glibc2.17
26+
if: ${{ matrix.container == 'centos-7.9' }}
27+
run: |
28+
curl -LO https://unofficial-builds.nodejs.org/download/release/v20.9.0/node-v20.9.0-linux-x64-glibc-217.tar.xz
29+
tar -xf node-v20.9.0-linux-x64-glibc-217.tar.xz --strip-components 1 -C /node20217
2330
- name: Check out the repo
24-
uses: actions/checkout@v3
31+
uses: actions/checkout@v4
2532

2633
- name: download and unpack easyblocks and easyconfigs repositories
2734
run: |

.github/workflows/unit_tests_python2.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,16 @@ jobs:
1616
# CentOS 7.9 container that already includes Lmod & co,
1717
# see https://github.com/easybuilders/easybuild-containers
1818
image: ghcr.io/easybuilders/centos-7.9-amd64
19-
env: {ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true} # Allow using Node16 actions
19+
volumes:
20+
- '/node20217:/node20217:rw,rshared'
21+
- '/node20217:/__e/node20:ro,rshared'
2022
steps:
21-
- uses: actions/checkout@v3
23+
- name: install nodejs20glibc2.17
24+
run: |
25+
curl -LO https://unofficial-builds.nodejs.org/download/release/v20.9.0/node-v20.9.0-linux-x64-glibc-217.tar.xz
26+
tar -xf node-v20.9.0-linux-x64-glibc-217.tar.xz --strip-components 1 -C /node20217
27+
28+
- uses: actions/checkout@v4
2229

2330
- name: install Python packages
2431
run: |

0 commit comments

Comments
 (0)