-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build job: configure and use action for sccache
Signed-off-by: Laurent Cheylus <[email protected]>
- Loading branch information
Showing
1 changed file
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,11 @@ jobs: | |
name: Build cargo-nextest | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 90 | ||
env: | ||
mem: 4096 | ||
SCCACHE_GHA_ENABLED: "true" | ||
RUSTC_WRAPPER: "sccache" | ||
|
||
steps: | ||
# Checkout only build script and script for CI | ||
- name: Checkout build script | ||
|
@@ -53,16 +58,20 @@ jobs: | |
echo "## rustc version for Ubuntu runner" | ||
rustc -vV | ||
# Use sccache for compilation cache (Rust) | ||
- name: Configure sccache | ||
uses: mozilla-actions/[email protected] | ||
|
||
# Prepare OpenBSD-stable VM and run build | ||
- name: Prepare OpenBSD VM and build | ||
uses: vmactions/[email protected] | ||
with: | ||
usesh: true | ||
sync: rsync | ||
copyback: true | ||
envs: 'NEXTEST_VERSION' | ||
envs: "NEXTEST_VERSION SCCACHE_GHA_ENABLED RUSTC_WRAPPER ACTIONS_CACHE_URL ACTIONS_RUNTIME_TOKEN" | ||
# Install requirements to build cargo-nextest | ||
prepare: pkg_add -I bash curl rust zstd | ||
prepare: pkg_add -I bash curl rust zstd sccache | ||
# implementation modelled from https://github.com/rust-lang/rustup/blob/master/.github/workflows/ci.yaml | ||
# * NOTE: All steps need to be run in this block, otherwise, we are operating back on the Ubuntu host | ||
run: bash ci/openbsd_build.sh | ||
|