mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
tools: cache Rust builds in GHA workflows
Signed-off-by: René <rene@renegade334.me.uk> PR-URL: https://github.com/nodejs/node/pull/67694 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Christian Aurich Zanettini Martins <christian.aurichzm@gmail.com>
This commit is contained in:
1 parent
3e4242ee6f
commit
a28558e322
9 files changed
+9
No files matched your search
@@ -103,6 +103,7 @@ jobs:
|
||||
CXX: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }} clang++-19
|
||||
SCCACHE_GHA_ENABLED: ${{ github.base_ref == 'main' || github.ref_name == 'main' }}
|
||||
SCCACHE_IDLE_TIMEOUT: '0'
|
||||
CARGO_BUILD_RUSTC_WRAPPER: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }}
|
||||
steps:
|
||||
- name: Install Clang ${{ env.CLANG_VERSION }}
|
||||
uses: $/.github/actions/install-clang
|
||||
|
||||
@@ -41,6 +41,7 @@ env:
|
||||
CXX: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }} clang++-19
|
||||
SCCACHE_GHA_ENABLED: ${{ github.base_ref == 'main' || github.ref_name == 'main' }}
|
||||
SCCACHE_IDLE_TIMEOUT: '0'
|
||||
CARGO_BUILD_RUSTC_WRAPPER: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }}
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
@@ -41,6 +41,7 @@ env:
|
||||
CXX: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }} clang++-19
|
||||
SCCACHE_GHA_ENABLED: ${{ github.base_ref == 'main' || github.ref_name == 'main' }}
|
||||
SCCACHE_IDLE_TIMEOUT: '0'
|
||||
CARGO_BUILD_RUSTC_WRAPPER: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }}
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
@@ -53,6 +53,7 @@ jobs:
|
||||
# test-linux.yml and test-macos.yml running on the main branch.
|
||||
SCCACHE_GHA_ENABLED: 'true'
|
||||
SCCACHE_IDLE_TIMEOUT: '0'
|
||||
CARGO_BUILD_RUSTC_WRAPPER: sccache
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
|
||||
@@ -46,6 +46,7 @@ env:
|
||||
CXX: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }} clang++-19
|
||||
SCCACHE_GHA_ENABLED: ${{ github.base_ref == 'main' || github.ref_name == 'main' }}
|
||||
SCCACHE_IDLE_TIMEOUT: '0'
|
||||
CARGO_BUILD_RUSTC_WRAPPER: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }}
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
@@ -27,6 +27,7 @@ env:
|
||||
CXX: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }} clang++-19
|
||||
SCCACHE_GHA_ENABLED: ${{ github.base_ref == 'main' || github.ref_name == 'main' }}
|
||||
SCCACHE_IDLE_TIMEOUT: '0'
|
||||
CARGO_BUILD_RUSTC_WRAPPER: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }}
|
||||
RUSTC_VERSION: '1.88'
|
||||
|
||||
permissions:
|
||||
|
||||
@@ -38,6 +38,7 @@ env:
|
||||
CXX: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }} clang++-19
|
||||
SCCACHE_GHA_ENABLED: ${{ github.base_ref == 'main' || github.ref_name == 'main' }}
|
||||
SCCACHE_IDLE_TIMEOUT: '0'
|
||||
CARGO_BUILD_RUSTC_WRAPPER: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }}
|
||||
RUSTC_VERSION: '1.88'
|
||||
|
||||
permissions:
|
||||
|
||||
@@ -46,6 +46,7 @@ env:
|
||||
CXX: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }} clang++-19
|
||||
SCCACHE_GHA_ENABLED: ${{ github.base_ref == 'main' || github.ref_name == 'main' }}
|
||||
SCCACHE_IDLE_TIMEOUT: '0'
|
||||
CARGO_BUILD_RUSTC_WRAPPER: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }}
|
||||
RUSTC_VERSION: '1.88'
|
||||
|
||||
permissions:
|
||||
|
||||
@@ -84,6 +84,7 @@ jobs:
|
||||
CXX: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }} g++
|
||||
SCCACHE_GHA_ENABLED: ${{ github.base_ref == 'main' || github.ref_name == 'main' }}
|
||||
SCCACHE_IDLE_TIMEOUT: '0'
|
||||
CARGO_BUILD_RUSTC_WRAPPER: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }}
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
|
||||
Reference in new issue
Block a user