Skip to content

Commit 37e725a

Browse files
MoLowmarco-ippolito
authored andcommitted
tools: use sccache Github action
PR-URL: #53316 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Filip Skokan <[email protected]>
1 parent 0381817 commit 37e725a

File tree

5 files changed

+39
-6
lines changed

5 files changed

+39
-6
lines changed

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

+8
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ jobs:
4040
coverage-linux-without-intl:
4141
if: github.event.pull_request.draft == false
4242
runs-on: ubuntu-latest
43+
env:
44+
CC: sccache gcc
45+
CXX: sccache g++
46+
SCCACHE_GHA_ENABLED: 'true'
4347
steps:
4448
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
4549
with:
@@ -48,6 +52,10 @@ jobs:
4852
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
4953
with:
5054
python-version: ${{ env.PYTHON_VERSION }}
55+
- name: Set up sccache
56+
uses: mozilla-actions/sccache-action@2e7f9ec7921547d4b46598398ca573513895d0bd # v0.0.4
57+
with:
58+
version: v0.8.0
5159
- name: Environment Information
5260
run: npx envinfo
5361
- name: Install gcovr

.github/workflows/coverage-linux.yml

+8
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ jobs:
4040
coverage-linux:
4141
if: github.event.pull_request.draft == false
4242
runs-on: ubuntu-latest
43+
env:
44+
CC: sccache gcc
45+
CXX: sccache g++
46+
SCCACHE_GHA_ENABLED: 'true'
4347
steps:
4448
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
4549
with:
@@ -48,6 +52,10 @@ jobs:
4852
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
4953
with:
5054
python-version: ${{ env.PYTHON_VERSION }}
55+
- name: Set up sccache
56+
uses: mozilla-actions/sccache-action@2e7f9ec7921547d4b46598398ca573513895d0bd # v0.0.4
57+
with:
58+
version: v0.8.0
5159
- name: Environment Information
5260
run: npx envinfo
5361
- name: Install gcovr

.github/workflows/test-asan.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,11 @@ jobs:
4141
if: github.event.pull_request.draft == false
4242
runs-on: ubuntu-20.04
4343
env:
44-
CC: clang
45-
CXX: clang++
46-
LINK: clang++
44+
CC: sccache clang
45+
CXX: sccache clang++
46+
LINK: sccache clang++
4747
CONFIG_FLAGS: --enable-asan
48+
SCCACHE_GHA_ENABLED: 'true'
4849
steps:
4950
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
5051
with:
@@ -53,6 +54,10 @@ jobs:
5354
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
5455
with:
5556
python-version: ${{ env.PYTHON_VERSION }}
57+
- name: Set up sccache
58+
uses: mozilla-actions/sccache-action@2e7f9ec7921547d4b46598398ca573513895d0bd # v0.0.4
59+
with:
60+
version: v0.8.0
5661
- name: Environment Information
5762
run: npx envinfo
5863
- name: Build

.github/workflows/test-macos.yml

+8
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ jobs:
3939
test-macOS:
4040
if: github.event.pull_request.draft == false
4141
runs-on: macos-14
42+
env:
43+
CC: sccache gcc
44+
CXX: sccache g++
45+
SCCACHE_GHA_ENABLED: 'true'
4246
steps:
4347
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
4448
with:
@@ -47,6 +51,10 @@ jobs:
4751
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
4852
with:
4953
python-version: ${{ env.PYTHON_VERSION }}
54+
- name: Set up sccache
55+
uses: mozilla-actions/sccache-action@2e7f9ec7921547d4b46598398ca573513895d0bd # v0.0.4
56+
with:
57+
version: v0.8.0
5058
- name: Environment Information
5159
run: npx envinfo
5260
# The `npm ci` for this step fails a lot as part of the Test step. Run it

.github/workflows/test-ubsan.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ jobs:
4040
if: false # Temporary disabled. Reference: https://github.com/nodejs/node/pull/52293#issuecomment-2059270585
4141
runs-on: ubuntu-latest
4242
env:
43-
CC: gcc
44-
CXX: g++
45-
LINK: g++
43+
CC: sccache gcc
44+
CXX: sccache g++
45+
LINK: sccache g++
4646
CONFIG_FLAGS: --enable-ubsan
4747
steps:
4848
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
@@ -55,6 +55,10 @@ jobs:
5555
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
5656
with:
5757
python-version: ${{ env.PYTHON_VERSION }}
58+
- name: Set up sccache
59+
uses: mozilla-actions/sccache-action@2e7f9ec7921547d4b46598398ca573513895d0bd # v0.0.4
60+
with:
61+
version: v0.8.0
5862
- name: Environment Information
5963
run: npx envinfo
6064
- name: Build

0 commit comments

Comments
 (0)