CI: cache build artifacts + --locked build (speeds the aarch64 host build)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GLUwWE2KmFPzhKaf67tWbx
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
ca42eeb386
commit
14ad11db98
@@ -30,11 +30,18 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
targets: ${{ matrix.target }}
|
targets: ${{ matrix.target }}
|
||||||
|
|
||||||
- name: Cache cargo registry
|
- name: Cache cargo + build artifacts
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ~/.cargo/registry
|
path: |
|
||||||
|
~/.cargo/registry
|
||||||
|
~/.cargo/git
|
||||||
|
target
|
||||||
key: ${{ runner.os }}-${{ matrix.arch }}-cargo-${{ hashFiles('Cargo.lock') }}
|
key: ${{ runner.os }}-${{ matrix.arch }}-cargo-${{ hashFiles('Cargo.lock') }}
|
||||||
|
# Reuse a prior build's compiled deps (pipewire-sys/bindgen is slow,
|
||||||
|
# especially on the aarch64 host) even when Cargo.lock changed.
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-${{ matrix.arch }}-cargo-
|
||||||
|
|
||||||
- name: Ensure audio build deps (libpipewire + clang for native capture)
|
- name: Ensure audio build deps (libpipewire + clang for native capture)
|
||||||
run: |
|
run: |
|
||||||
@@ -56,7 +63,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build --release --target ${{ matrix.target }}
|
run: cargo build --release --locked --target ${{ matrix.target }}
|
||||||
|
|
||||||
- name: Package
|
- name: Package
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user