Made rust compilation also use sscache and also display it's building time

This commit is contained in:
mr. m
2025-02-24 23:16:51 +01:00
parent 382dcc8d0c
commit 59e8c120e2
3 changed files with 24 additions and 2 deletions

View File

@@ -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:
@@ -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

View File

@@ -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
@@ -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

View File

@@ -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:
@@ -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