Use bounded Rust cache in Toolkit main and next CI
This commit is contained in:
@@ -28,10 +28,16 @@ jobs:
|
|||||||
run: python3 ci/check-runner-image.py
|
run: python3 ci/check-runner-image.py
|
||||||
- name: Install build dependencies
|
- name: Install build dependencies
|
||||||
run: bash ci/ensure-build-deps.sh base
|
run: bash ci/ensure-build-deps.sh base
|
||||||
|
- name: Configure bounded Rust compiler cache
|
||||||
|
run: bash ci/configure-rust-cache.sh
|
||||||
- name: Compute wxWidgets cache key
|
- name: Compute wxWidgets cache key
|
||||||
id: wx-key
|
id: wx-key
|
||||||
run: bash ci/wx-cache-key.sh
|
run: bash ci/wx-cache-key.sh
|
||||||
|
- name: Check prebuilt wxWidgets
|
||||||
|
id: wx-image
|
||||||
|
run: bash ci/check-wx-image-prefix.sh
|
||||||
- id: wx-cache
|
- id: wx-cache
|
||||||
|
if: steps.wx-image.outputs.available != 'true'
|
||||||
uses: actions/cache/restore@v4
|
uses: actions/cache/restore@v4
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
with:
|
with:
|
||||||
@@ -63,6 +69,12 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||||
run: python3 ci/release-rc.py "${{ steps.version.outputs.tag }}" true "dist/alkane-toolkit-${{ steps.version.outputs.version }}-linux-x86_64.tar.gz"
|
run: python3 ci/release-rc.py "${{ steps.version.outputs.tag }}" true "dist/alkane-toolkit-${{ steps.version.outputs.version }}-linux-x86_64.tar.gz"
|
||||||
|
- name: Rust compiler cache statistics
|
||||||
|
if: always()
|
||||||
|
run: |
|
||||||
|
if [ -n "${SCCACHE_DIR:-}" ]; then
|
||||||
|
sccache --show-stats
|
||||||
|
fi
|
||||||
- name: Clean generated Toolkit build
|
- name: Clean generated Toolkit build
|
||||||
if: always()
|
if: always()
|
||||||
run: python3 ci/cleanup-generated.py
|
run: python3 ci/cleanup-generated.py
|
||||||
|
|||||||
@@ -53,6 +53,9 @@ jobs:
|
|||||||
- name: Install build dependencies
|
- name: Install build dependencies
|
||||||
run: bash ci/ensure-build-deps.sh all
|
run: bash ci/ensure-build-deps.sh all
|
||||||
|
|
||||||
|
- name: Configure bounded Rust compiler cache
|
||||||
|
run: bash ci/configure-rust-cache.sh
|
||||||
|
|
||||||
- name: Compute wxWidgets cache key
|
- name: Compute wxWidgets cache key
|
||||||
id: wx-key
|
id: wx-key
|
||||||
run: bash ci/wx-cache-key.sh
|
run: bash ci/wx-cache-key.sh
|
||||||
@@ -133,6 +136,13 @@ jobs:
|
|||||||
echo "cargo-audit not installed on this runner; skipping"
|
echo "cargo-audit not installed on this runner; skipping"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- name: Rust compiler cache statistics
|
||||||
|
if: always()
|
||||||
|
run: |
|
||||||
|
if [ -n "${SCCACHE_DIR:-}" ]; then
|
||||||
|
sccache --show-stats
|
||||||
|
fi
|
||||||
|
|
||||||
# Merge coverage from unit tests and the headless UI self-test. A failed
|
# Merge coverage from unit tests and the headless UI self-test. A failed
|
||||||
# measurement must not publish a stale badge or create a release.
|
# measurement must not publish a stale badge or create a release.
|
||||||
- name: Coverage
|
- name: Coverage
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
# Reuse Rust compiler results on the dedicated verification runner.
|
# Reuse Rust compiler results on persistent CI runners.
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
[ "$(sccache --version)" = 'sccache 0.18.0' ] || {
|
[ "$(sccache --version)" = 'sccache 0.18.0' ] || {
|
||||||
|
|||||||
Reference in New Issue
Block a user