diff --git a/.github/workflows/coverage-linux-without-intl.yml b/.github/workflows/coverage-linux-without-intl.yml index 1e2ef68e449479..d095f37317ff03 100644 --- a/.github/workflows/coverage-linux-without-intl.yml +++ b/.github/workflows/coverage-linux-without-intl.yml @@ -40,6 +40,10 @@ jobs: coverage-linux-without-intl: if: github.event.pull_request.draft == false runs-on: ubuntu-latest + env: + CC: sccache gcc + CXX: sccache g++ + SCCACHE_GHA_ENABLED: 'true' steps: - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 with: @@ -48,6 +52,10 @@ jobs: uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 with: python-version: ${{ env.PYTHON_VERSION }} + - name: Set up sccache + uses: mozilla-actions/sccache-action@2e7f9ec7921547d4b46598398ca573513895d0bd # v0.0.4 + with: + version: v0.8.0 - name: Environment Information run: npx envinfo - name: Install gcovr diff --git a/.github/workflows/coverage-linux.yml b/.github/workflows/coverage-linux.yml index 55e36c8b51b889..bf71bd143f733a 100644 --- a/.github/workflows/coverage-linux.yml +++ b/.github/workflows/coverage-linux.yml @@ -40,6 +40,10 @@ jobs: coverage-linux: if: github.event.pull_request.draft == false runs-on: ubuntu-latest + env: + CC: sccache gcc + CXX: sccache g++ + SCCACHE_GHA_ENABLED: 'true' steps: - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 with: @@ -48,6 +52,10 @@ jobs: uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 with: python-version: ${{ env.PYTHON_VERSION }} + - name: Set up sccache + uses: mozilla-actions/sccache-action@2e7f9ec7921547d4b46598398ca573513895d0bd # v0.0.4 + with: + version: v0.8.0 - name: Environment Information run: npx envinfo - name: Install gcovr diff --git a/.github/workflows/test-asan.yml b/.github/workflows/test-asan.yml index d6e2d82ec256e8..c2115fdbf78b89 100644 --- a/.github/workflows/test-asan.yml +++ b/.github/workflows/test-asan.yml @@ -41,10 +41,11 @@ jobs: if: github.event.pull_request.draft == false runs-on: ubuntu-20.04 env: - CC: clang - CXX: clang++ - LINK: clang++ + CC: sccache clang + CXX: sccache clang++ + LINK: sccache clang++ CONFIG_FLAGS: --enable-asan + SCCACHE_GHA_ENABLED: 'true' steps: - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 with: @@ -53,6 +54,10 @@ jobs: uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 with: python-version: ${{ env.PYTHON_VERSION }} + - name: Set up sccache + uses: mozilla-actions/sccache-action@2e7f9ec7921547d4b46598398ca573513895d0bd # v0.0.4 + with: + version: v0.8.0 - name: Environment Information run: npx envinfo - name: Build diff --git a/.github/workflows/test-macos.yml b/.github/workflows/test-macos.yml index 31c4fd0ea08d1c..8796824e57e8c1 100644 --- a/.github/workflows/test-macos.yml +++ b/.github/workflows/test-macos.yml @@ -39,6 +39,10 @@ jobs: test-macOS: if: github.event.pull_request.draft == false runs-on: macos-14 + env: + CC: sccache gcc + CXX: sccache g++ + SCCACHE_GHA_ENABLED: 'true' steps: - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 with: @@ -47,6 +51,10 @@ jobs: uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 with: python-version: ${{ env.PYTHON_VERSION }} + - name: Set up sccache + uses: mozilla-actions/sccache-action@2e7f9ec7921547d4b46598398ca573513895d0bd # v0.0.4 + with: + version: v0.8.0 - name: Environment Information run: npx envinfo # The `npm ci` for this step fails a lot as part of the Test step. Run it diff --git a/.github/workflows/test-ubsan.yml b/.github/workflows/test-ubsan.yml index eb68fc9b255fb1..3c3f8a647c9047 100644 --- a/.github/workflows/test-ubsan.yml +++ b/.github/workflows/test-ubsan.yml @@ -40,9 +40,9 @@ jobs: if: false # Temporary disabled. Reference: https://github.com/nodejs/node/pull/52293#issuecomment-2059270585 runs-on: ubuntu-latest env: - CC: gcc - CXX: g++ - LINK: g++ + CC: sccache gcc + CXX: sccache g++ + LINK: sccache g++ CONFIG_FLAGS: --enable-ubsan steps: - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 @@ -55,6 +55,10 @@ jobs: uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 with: python-version: ${{ env.PYTHON_VERSION }} + - name: Set up sccache + uses: mozilla-actions/sccache-action@2e7f9ec7921547d4b46598398ca573513895d0bd # v0.0.4 + with: + version: v0.8.0 - name: Environment Information run: npx envinfo - name: Build