Skip to content

Commit 3b35506

Browse files
committed
update node and ubuntu dependencies
1 parent a844998 commit 3b35506

File tree

1 file changed

+11
-16
lines changed

1 file changed

+11
-16
lines changed

Diff for: .github/workflows/rebuildElectron.yml

+11-16
Original file line numberDiff line numberDiff line change
@@ -11,31 +11,26 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
runs-on: ubuntu-latest
14-
container: ubuntu:18.04
14+
container: ubuntu:22.04
1515
steps:
1616
- name: Print Tag Ref
1717
run: echo ${{ github.ref }}
1818

1919
- name: Install Dependencies for Ubuntu
2020
# git >= 2.18 required for actions/checkout git support
21-
run: apt update && apt install -y software-properties-common && add-apt-repository -y ppa:git-core/ppa && apt update && apt install -y git wget build-essential clang python3 libkrb5-dev libc++-dev zlib1g-dev libssl-dev
21+
run: apt update && apt install -y software-properties-common git wget build-essential clang python3 libkrb5-dev libc++-dev zlib1g-dev libssl-dev
2222
env:
2323
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
2424

25-
# v4 requires node 20, which won't run due to GLIBC 2.28+ requirement
26-
- uses: actions/checkout@v3
25+
- uses: actions/checkout@v4
2726

28-
# v4 requires node 20, which won't run due to GLIBC 2.28+ requirement
29-
- name: Use Node.js 16
30-
uses: actions/setup-node@v3
27+
- name: Use Node.js 20
28+
uses: actions/setup-node@v4
3129
env:
3230
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
3331
with:
34-
node-version: 16
35-
36-
# We're running in docker without other users
37-
- name: Set npm config
38-
run: npm config set unsafe-perm true
32+
node-version: 20
33+
architecture: ${{ matrix.arch }}
3934

4035
- run: git config --global --add safe.directory /__w/electron-npg-automator/electron-npg-automator
4136
- run: npm install
@@ -94,12 +89,12 @@ jobs:
9489

9590
- uses: actions/checkout@v4
9691

97-
- name: Use Node.js 16
92+
- name: Use Node.js 20
9893
uses: actions/setup-node@v4
9994
env:
10095
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
10196
with:
102-
node-version: 16
97+
node-version: 20
10398
architecture: ${{ matrix.arch }}
10499

105100
- name: Use Python 3.11 # node-gyp < 10 breaks with 3.12
@@ -162,12 +157,12 @@ jobs:
162157

163158
- uses: actions/checkout@v4
164159

165-
- name: Use Node.js 16
160+
- name: Use Node.js 20
166161
uses: actions/setup-node@v4
167162
env:
168163
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
169164
with:
170-
node-version: 16
165+
node-version: 20
171166
architecture: ${{ matrix.arch }}
172167

173168
- name: Use Python 3.11 # node-gyp < 10 breaks with 3.12

0 commit comments

Comments
 (0)