mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-20 18:40:37 +00:00
* fix: Try and fix sccache toggle...again Signed-off-by: Gilver <roachy@fyralabs.com> * Beep Signed-off-by: Gilver <roachy@fyralabs.com> * Revert "Beep" This reverts commit34ee5aa7fa. * ? Signed-off-by: Gilver <roachy@fyralabs.com> * chore: sccache path Signed-off-by: Gilver <roachy@fyralabs.com> * chore: Add back if Signed-off-by: Gilver <roachy@fyralabs.com> * The Success * fix: Reminder to disable autoformatting on Kate again * feat: sccache summary back Signed-off-by: Gilver <roachy@fyralabs.com> --------- Signed-off-by: Gilver <roachy@fyralabs.com> (cherry picked from commitd2e74d4b37) Signed-off-by: GildedRoach <GildedRoach@users.noreply.github.com> # Conflicts: # .github/workflows/json-build.yml
This commit is contained in:
@@ -55,6 +55,18 @@ jobs:
|
||||
- name: Set up git repository
|
||||
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
||||
|
||||
- name: Configure sccache
|
||||
id: sccache
|
||||
if: ${{ !contains(matrix.pkg.labels.sccache, '0') }}
|
||||
uses: actions/github-script@v8
|
||||
env:
|
||||
SCCACHE_GHA_VERSION: ${{ matrix.version }}-${{ matrix.pkg.arch }}-${{ matrix.pkg.pkg }}
|
||||
SCCACHE_GHA_CACHE_FROM: ${{ matrix.version }}-${{ matrix.pkg.arch }}-${{ matrix.pkg.pkg }}
|
||||
with:
|
||||
script: |
|
||||
const script = require('./.github/scripts/configure-sccache.js')
|
||||
await script({github, context, core, exec})
|
||||
|
||||
- name: CI Setup Script
|
||||
if: ${{ !contains(matrix.pkg.labels, 'mock') }}
|
||||
run: |
|
||||
@@ -69,20 +81,17 @@ jobs:
|
||||
dir=$(dirname ${{ matrix.pkg.pkg }})
|
||||
dnf5 builddep -y ${dir}/*.spec
|
||||
|
||||
- name: Configure sccache
|
||||
if: matrix.pkg.labels['sccache'] != '0'
|
||||
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" -D "__python %{__python3}" ${{ matrix.pkg.pkg }} -c terra-${{ matrix.version }}-${{ matrix.pkg.arch }} ${{ !matrix.pkg.labels.mock == '1' && '-rrpmbuild' || '' }}
|
||||
|
||||
- name: Report Cache Summary
|
||||
if: steps.sccache.outcome == 'success'
|
||||
uses: actions/github-script@v8
|
||||
with:
|
||||
script: |
|
||||
const script = require('./.github/scripts/sccache-stats.js')
|
||||
await script({github, context, core, exec})
|
||||
|
||||
- name: Generating artifact name
|
||||
id: art
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user