Skip to content

Commit

Permalink
use correct repos for centos
Browse files Browse the repository at this point in the history
  • Loading branch information
seemk committed Jul 2, 2024
1 parent 482400d commit c8a315e
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,14 +217,18 @@ jobs:
nodejs: [18]
include:
- container: 'centos:8'
- cmd: 'curl -sL https://rpm.nodesource.com/setup_${NODE_VERSION}.x | bash - && dnf install -y nodejs gcc-c++ make'
- cmd: 'curl -sL https://rpm.nodesource.com/setup_${NODE_VERSION}.x | bash - && yum install -y nodejs gcc-c++ make'
name: CentOS build check - ${{ matrix.container }} - Node.js ${{ matrix.nodejs }}
container: ${{ matrix.container }}
env:
NODE_VERSION: ${{ matrix.nodejs }}
steps:
- name: Setup container
run: ${{ matrix.cmd }}
run: |
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
yum update -y
${{ matrix.cmd }}
- name: Checkout
uses: actions/checkout@v3
- name: Install npm dependencies
Expand All @@ -245,14 +249,18 @@ jobs:
include:
- container: 'centos:8'
nodejs: 18
cmd: 'curl -sL https://rpm.nodesource.com/setup_${NODE_VERSION}.x | bash - && dnf install -y nodejs gcc-c++ make'
cmd: 'curl -sL https://rpm.nodesource.com/setup_${NODE_VERSION}.x | bash - && yum install -y nodejs gcc-c++ make'
name: Centos check - ${{ matrix.container }} - Node.js ${{ matrix.nodejs }}
container: ${{ matrix.container }}
env:
NODE_VERSION: ${{ matrix.nodejs }}
steps:
- name: Setup container
run: ${{ matrix.cmd }}
run: |
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
yum update -y
${{ matrix.cmd }}
- name: Checkout
uses: actions/checkout@v3
- name: Download
Expand Down

0 comments on commit c8a315e

Please sign in to comment.