diff options
author | sagudev <16504129+sagudev@users.noreply.github.com> | 2023-04-02 07:18:51 +0200 |
---|---|---|
committer | sagudev <16504129+sagudev@users.noreply.github.com> | 2023-04-02 07:18:51 +0200 |
commit | 91de41a70aec9197f1e8833f0697affe27aa9c51 (patch) | |
tree | 9a849a8af8ffd55b904f5dfb060a337d20c1e9d5 | |
parent | 901ba9bab01a70587411279d0cd47aab68bb2a85 (diff) | |
download | servo-91de41a70aec9197f1e8833f0697affe27aa9c51.tar.gz servo-91de41a70aec9197f1e8833f0697affe27aa9c51.zip |
Sccache in actions (linux & mac)
-rw-r--r-- | .github/workflows/linux.yml | 6 | ||||
-rw-r--r-- | .github/workflows/mac.yml | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 0e9de4ce362..39667afaf48 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -34,6 +34,10 @@ env: RUST_BACKTRACE: 1 SHELL: /bin/bash LAYOUT: "${{ contains(inputs.layout, '2020') && 'layout-2020' || 'layout-2013' }}" + SCCACHE_GHA_ENABLED: "true" + RUSTC_WRAPPER: "sccache" + CCACHE: "sccache" + CARGO_INCREMENTAL: 0 jobs: build-linux: @@ -44,6 +48,8 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 2 + - name: Run sccache-cache + uses: mozilla-actions/sccache-action@v0.0.3 - name: Bootstrap Python run: python3 -m pip install --upgrade pip virtualenv - name: Bootstrap dependencies diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml index 02124b5b5f8..0609b35d2dc 100644 --- a/.github/workflows/mac.yml +++ b/.github/workflows/mac.yml @@ -19,6 +19,10 @@ env: RUST_BACKTRACE: 1 SHELL: /bin/bash LAYOUT: "${{ contains(inputs.layout, '2020') && 'layout-2020' || 'layout-2013' }}" + SCCACHE_GHA_ENABLED: "true" + RUSTC_WRAPPER: "sccache" + CCACHE: "sccache" + CARGO_INCREMENTAL: 0 jobs: build-mac: @@ -28,6 +32,8 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 2 + - name: Run sccache-cache + uses: mozilla-actions/sccache-action@v0.0.3 # TODO: Remove this step when the compatibility issue between mozjs and # Homebrew's Python 3.10 formula (servo/rust-mozjs#559) is fixed - name: Select Python 3.9 |