mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-22 11:30:38 +00:00
@@ -35,6 +35,7 @@ on:
|
||||
type: boolean
|
||||
default: true
|
||||
|
||||
<<<<<<< HEAD
|
||||
env:
|
||||
RUSTC_WRAPPER: "/usr/bin/sccache"
|
||||
# SCCACHE_NO_DAEMON: "1"
|
||||
@@ -43,6 +44,8 @@ env:
|
||||
SCCACHE_GHA_ENABLED: "true"
|
||||
SCCACHE_RECACHE: "${{ inputs.bust_cache == 'true' && 'true' || '' }}"
|
||||
|
||||
=======
|
||||
>>>>>>> 05feb6592 (feat: Toggleable sccache (#9773))
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
@@ -77,8 +80,16 @@ jobs:
|
||||
dir=$(dirname ${{ matrix.pkg.pkg }})
|
||||
dnf5 builddep -y ${dir}/*.spec
|
||||
|
||||
- name: Run sccache-cache
|
||||
uses: mozilla-actions/sccache-action@v0.0.9
|
||||
- name: Configure sccache
|
||||
if: ${{ !contains(matrix.pkg.labels, 'sccache') }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
echo "RUSTC_WRAPPER=/usr/bin/sccache" >> $GITHUB_ENV
|
||||
echo "CARGO_INCREMENTAL=false" >> $GITHUB_ENV
|
||||
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
|
||||
if [ "${{ inputs.bust_cache }}" = "true" ]; then
|
||||
echo "SCCACHE_BUST_CACHE=true" >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: Build with Andaman
|
||||
run: anda build -D "vendor Terra" ${{ matrix.pkg.pkg }} -c terra-${{ matrix.version }}-${{ matrix.pkg.arch }} ${{ !matrix.pkg.labels.mock == '1' && '-rrpmbuild' || '' }}
|
||||
|
||||
Reference in New Issue
Block a user