CI: Node.js 18 does not support CentOS 7, upgrade to Rocky 8

This commit is contained in:
Lovell Fuller 2022-06-29 12:18:41 +01:00
parent c99a11cff5
commit 1bcd3700c5

View File

@ -19,7 +19,7 @@ jobs:
container: centos:7
nodejs_version: 16
- os: ubuntu-20.04
container: centos:7
container: rockylinux:8
nodejs_version: 18
- os: ubuntu-20.04
container: node:14-alpine3.12
@ -27,9 +27,7 @@ jobs:
- os: ubuntu-20.04
container: node:16-alpine3.12
- os: ubuntu-20.04
container: node:18-alpine3.12
- os: ubuntu-20.04
container: node:18-alpine3.16
container: node:18-alpine3.14
- os: macos-10.15
nodejs_version: 14
prebuild: true
@ -68,6 +66,11 @@ jobs:
yum install -y centos-release-scl
yum install -y devtoolset-11-gcc-c++ make git python3 nodejs
echo "/opt/rh/devtoolset-11/root/usr/bin" >> $GITHUB_PATH
- name: Dependencies (Rocky Linux glibc)
if: contains(matrix.container, 'rockylinux')
run: |
curl -sL https://rpm.nodesource.com/setup_${{ matrix.nodejs_version }}.x | bash -
dnf install -y gcc-toolset-11-gcc-c++ make git python3 nodejs
- name: Dependencies (Linux musl)
if: contains(matrix.container, 'alpine')
run: apk add build-base git python3 --update-cache