Skip to content

Commit

Permalink
Made rust compilation also use sscache and also display it's building…
Browse files Browse the repository at this point in the history
… time
  • Loading branch information
mauro-balades committed Feb 24, 2025
1 parent 382dcc8 commit 59e8c12
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/linux-release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ jobs:
fail-fast: false
matrix:
arch: [x86_64, aarch64]
env:
SCCACHE_GHA_ENABLED: 'true'
CARGO_TERM_COLOR: always
RUSTC_WRAPPER: 'sccache'
name: Build Linux - ${{ matrix.arch }}

steps:
Expand Down Expand Up @@ -143,3 +147,7 @@ jobs:
retention-days: 5
name: linux_update_manifest_${{ matrix.arch }}
path: ./dist/update

- name: Run sccache stat for check
shell: bash
run: ${SCCACHE_PATH} --show-stats
9 changes: 8 additions & 1 deletion .github/workflows/macos-release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ jobs:
fail-fast: false
matrix:
arch: [x86_64, aarch64]

env:
SCCACHE_GHA_ENABLED: 'true'
CARGO_TERM_COLOR: always
RUSTC_WRAPPER: 'sccache'
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -160,3 +163,7 @@ jobs:
retention-days: 1
name: platform.ini
path: ./platform.ini

- name: Run sccache stat for check
shell: bash
run: ${SCCACHE_PATH} --show-stats
9 changes: 8 additions & 1 deletion .github/workflows/windows-release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ jobs:
name: Build Windows - ${{ matrix.arch }}
# aarch64 does not need full 16x, and we also dont use full LTO when generating GPO
runs-on: ${{ (inputs.release-branch == 'release' && !inputs.generate-gpo && matrix.arch == 'x86_64') && 'self-hosted' || 'ubuntu-latest' }}

env:
SCCACHE_GHA_ENABLED: 'true'
CARGO_TERM_COLOR: always
RUSTC_WRAPPER: 'sccache'
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -309,3 +312,7 @@ jobs:
retention-days: 5
name: windows_update_manifest_${{ matrix.arch == 'aarch64' && 'arm64' || matrix.arch }}
path: ./dist/update

- name: Run sccache stat for check
shell: bash
run: ${SCCACHE_PATH} --show-stats

0 comments on commit 59e8c12

Please sign in to comment.