Skip to content

Commit a4be2f5

Browse files
committed
fix linux actions
1 parent e10267b commit a4be2f5

File tree

1 file changed

+19
-55
lines changed

1 file changed

+19
-55
lines changed

.github/workflows/tests.yml

Lines changed: 19 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,12 @@ jobs:
1414
name: "Linux Tests"
1515
strategy:
1616
matrix:
17-
node: [16] # 18+ requires GLIBC 2.28+
18-
runs-on: ubuntu-latest
19-
container: ubuntu:16.04
17+
node: [16, 18, 20, 22]
18+
fail-fast: false
19+
runs-on: ubuntu-20.04
2020
steps:
2121
- name: Install Dependencies for Ubuntu
22-
# git >= 2.18 required for actions/checkout git support
23-
run: apt-get update && apt-get install -y software-properties-common && add-apt-repository -y ppa:git-core/ppa && apt-get update && apt-get install -y git build-essential clang libssl-dev libkrb5-dev libc++-dev wget
24-
env:
25-
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
26-
27-
- name: Setup python 3.6
28-
env:
29-
CC: clang
30-
CXX: clang++
31-
run: |
32-
mkdir ~/python
33-
cd ~/python
34-
wget https://www.python.org/ftp/python/3.6.15/Python-3.6.15.tgz
35-
tar -xvf Python-3.6.15.tgz
36-
cd Python-3.6.15
37-
./configure
38-
make
39-
make install
22+
run: sudo apt-get update && sudo apt-get install -y software-properties-common git build-essential clang libssl-dev libkrb5-dev libc++-dev wget zlib1g-dev
4023

4124
- name: Setup Environment
4225
run: |
@@ -49,31 +32,20 @@ jobs:
4932
git config --global user.name "John Doe"
5033
git config --global user.email johndoe@example.com
5134
52-
# v4 requires node 20, which won't run due to GLIBC 2.28+ requirement
53-
- uses: actions/checkout@v3
35+
- uses: actions/checkout@v4
36+
37+
- uses: actions/setup-python@v5
38+
with:
39+
python-version: "3.6"
5440

5541
- name: Use Node.js
56-
# v4 requires node 20, which won't run due to GLIBC 2.28+ requirement
57-
uses: actions/setup-node@v3
58-
env:
59-
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
42+
uses: actions/setup-node@v4
6043
with:
6144
node-version: ${{ matrix.node }}
6245
check-latest: true
6346

6447
- name: Install
65-
env:
66-
CC: clang
67-
CXX: clang++
68-
npm_config_clang: 1
69-
GYP_DEFINES: use_obsolete_asm=true
70-
# There is a race condition in node/generate that needs to be fixed
71-
# Node 16 changed the logic it uses to select it's UID which means to make node run as root and not 1001, we need to chwon the current directory. More Details:
72-
# https://stackoverflow.com/questions/70298238/getting-eaccess-when-running-npm-8-as-root
73-
run: |
74-
chown root.root -R .
75-
npm set unsafe-perm true
76-
node utils/retry npm install
48+
run: npm install
7749

7850
- name: Test
7951
run: |
@@ -98,10 +70,11 @@ jobs:
9870
name: "macOS Tests"
9971
strategy:
10072
matrix:
101-
node: [16, 18, 20]
102-
runs-on: macOS-12
103-
# This is mostly the same as the Linux steps, waiting for anchor support
104-
# https://github.com/actions/runner/issues/1182
73+
node: [16, 18, 20, 22]
74+
fail-fast: false
75+
runs-on: macOS-13
76+
# This is mostly the same as the Linux steps, waiting for anchor support
77+
# https://github.com/actions/runner/issues/1182
10578
steps:
10679
- name: Setup Environment
10780
run: |
@@ -118,20 +91,12 @@ jobs:
11891

11992
- name: Use Node.js
12093
uses: actions/setup-node@v4
121-
env:
122-
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
12394
with:
12495
node-version: ${{ matrix.node }}
12596
check-latest: true
12697

12798
- name: Install
128-
env:
129-
CC: clang
130-
CXX: clang++
131-
npm_config_clang: 1
132-
GYP_DEFINES: use_obsolete_asm=true
133-
# There is a race condition in node/generate that needs to be fixed
134-
run: node utils/retry npm install
99+
run: npm install
135100

136101
- name: Test
137102
run: |
@@ -156,8 +121,9 @@ jobs:
156121
name: Windows Tests
157122
strategy:
158123
matrix:
159-
node: [16, 18, 20]
124+
node: [16, 18, 20, 22]
160125
arch: [x86, x64]
126+
fail-fast: false
161127
runs-on: windows-2019
162128
steps:
163129
- name: Setup Environment
@@ -172,8 +138,6 @@ jobs:
172138

173139
- name: Use Node.js
174140
uses: actions/setup-node@v4
175-
env:
176-
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
177141
with:
178142
node-version: ${{ matrix.node }}
179143
check-latest: true

0 commit comments

Comments
 (0)