Skip to content

Commit 408f461

Browse files
committed
tools: use Ubuntu 24.04 and Clang on GitHub actions
This puts us closer to what V8 actively supports. GCC is still covered a lot by Jenkins CI.
1 parent 5469d04 commit 408f461

File tree

6 files changed

+23
-22
lines changed

6 files changed

+23
-22
lines changed

.github/workflows/build-tarball.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,16 @@ concurrency:
3030
env:
3131
PYTHON_VERSION: '3.12'
3232
FLAKY_TESTS: keep_retrying
33+
CC: clang
34+
CXX: clang++
3335

3436
permissions:
3537
contents: read
3638

3739
jobs:
3840
build-tarball:
3941
if: github.event.pull_request.draft == false
40-
runs-on: ubuntu-latest
42+
runs-on: ubuntu-24.04
4143
steps:
4244
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
4345
with:
@@ -63,7 +65,7 @@ jobs:
6365
path: tarballs
6466
test-tarball-linux:
6567
needs: build-tarball
66-
runs-on: ubuntu-latest
68+
runs-on: ubuntu-24.04
6769
steps:
6870
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
6971
with:

.github/workflows/coverage-linux-without-intl.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,17 @@ concurrency:
3232
env:
3333
PYTHON_VERSION: '3.12'
3434
FLAKY_TESTS: keep_retrying
35+
CC: sccache clang
36+
CXX: sccache clang++
37+
SCCACHE_GHA_ENABLED: 'true'
3538

3639
permissions:
3740
contents: read
3841

3942
jobs:
4043
coverage-linux-without-intl:
4144
if: github.event.pull_request.draft == false
42-
runs-on: ubuntu-latest
43-
env:
44-
CC: sccache gcc
45-
CXX: sccache g++
46-
SCCACHE_GHA_ENABLED: 'true'
45+
runs-on: ubuntu-24.04
4746
steps:
4847
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
4948
with:

.github/workflows/coverage-linux.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,17 @@ concurrency:
3232
env:
3333
PYTHON_VERSION: '3.12'
3434
FLAKY_TESTS: keep_retrying
35+
CC: sccache clang
36+
CXX: sccache clang++
37+
SCCACHE_GHA_ENABLED: 'true'
3538

3639
permissions:
3740
contents: read
3841

3942
jobs:
4043
coverage-linux:
4144
if: github.event.pull_request.draft == false
42-
runs-on: ubuntu-latest
43-
env:
44-
CC: sccache gcc
45-
CXX: sccache g++
46-
SCCACHE_GHA_ENABLED: 'true'
45+
runs-on: ubuntu-24.04
4746
steps:
4847
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
4948
with:

.github/workflows/daily.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ permissions:
1313

1414
jobs:
1515
build-lto:
16-
runs-on: ubuntu-latest
17-
# not working on gcc-8 and gcc-9 see https://github.com/nodejs/node/issues/38570
18-
container: gcc:11
16+
runs-on: ubuntu-24.04
1917
steps:
2018
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
2119
with:
@@ -28,6 +26,6 @@ jobs:
2826
run: npx envinfo
2927
- name: Build lto
3028
run: |
31-
apt-get update && apt-get install ninja-build python-is-python3 -y
29+
sudo apt-get update && sudo apt-get install ninja-build -y
3230
./configure --enable-lto --ninja
3331
ninja -C out/Release

.github/workflows/test-internet.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
pull_request:
99
types: [opened, synchronize, reopened, ready_for_review]
1010
paths:
11+
- .github/workflows/test-internet.yml
1112
- test/internet/**
1213
- internal/dns/**
1314
- lib/dns.js
@@ -19,6 +20,7 @@ on:
1920
- v[0-9]+.x-staging
2021
- v[0-9]+.x
2122
paths:
23+
- .github/workflows/test-internet.yml
2224
- test/internet/**
2325
- internal/dns/**
2426
- lib/dns.js
@@ -31,14 +33,16 @@ concurrency:
3133
env:
3234
PYTHON_VERSION: '3.12'
3335
FLAKY_TESTS: keep_retrying
36+
CC: clang
37+
CXX: clang++
3438

3539
permissions:
3640
contents: read
3741

3842
jobs:
3943
test-internet:
4044
if: github.repository == 'nodejs/node' || github.event_name != 'schedule'
41-
runs-on: ubuntu-latest
45+
runs-on: ubuntu-24.04
4246
steps:
4347
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
4448
with:

.github/workflows/test-linux.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,17 @@ concurrency:
2525
env:
2626
PYTHON_VERSION: '3.12'
2727
FLAKY_TESTS: keep_retrying
28+
CC: sccache clang
29+
CXX: sccache clang++
30+
SCCACHE_GHA_ENABLED: 'true'
2831

2932
permissions:
3033
contents: read
3134

3235
jobs:
3336
test-linux:
3437
if: github.event.pull_request.draft == false
35-
runs-on: ubuntu-latest
36-
env:
37-
CC: sccache gcc
38-
CXX: sccache g++
39-
SCCACHE_GHA_ENABLED: 'true'
38+
runs-on: ubuntu-24.04
4039
steps:
4140
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
4241
with:

0 commit comments

Comments
 (0)