From 1bcd3700c55f7e8f686d1bfb0660fe1ecddaf788 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Wed, 29 Jun 2022 12:18:41 +0100 Subject: [PATCH] CI: Node.js 18 does not support CentOS 7, upgrade to Rocky 8 --- .github/workflows/ci.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 06277ae1..c2870f00 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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