mirror of
https://github.com/zen-browser/desktop.git
synced 2026-02-23 11:56:40 +00:00
feat: add 'use-sccache' input to build workflows for improved caching options
This commit is contained in:
10
.github/workflows/linux-release-build.yml
vendored
10
.github/workflows/linux-release-build.yml
vendored
@@ -15,6 +15,11 @@ on:
|
||||
type: string
|
||||
required: true
|
||||
default: ''
|
||||
use-sccache:
|
||||
description: 'Use sccache'
|
||||
required: true
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
jobs:
|
||||
build-linux:
|
||||
@@ -27,9 +32,9 @@ jobs:
|
||||
matrix:
|
||||
arch: [x86_64, aarch64]
|
||||
env:
|
||||
SCCACHE_GHA_ENABLED: 'true'
|
||||
SCCACHE_GHA_ENABLED: ${ inputs.use-sccache }
|
||||
CARGO_TERM_COLOR: always
|
||||
RUSTC_WRAPPER: 'sccache'
|
||||
RUSTC_WRAPPER: ${ inputs.use-sccache && 'sccache' || '' }
|
||||
CARGO_INCREMENTAL: 0
|
||||
name: Build Linux - ${{ matrix.arch }}
|
||||
|
||||
@@ -56,6 +61,7 @@ jobs:
|
||||
|
||||
- name: Run sccache-cache
|
||||
uses: mozilla-actions/sccache-action@main
|
||||
if: ${{ inputs.use-sccache }}
|
||||
with:
|
||||
disable_annotations: true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user