-
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.
- Loading branch information
1 parent
a42ade3
commit 9aaf3fe
Showing
1 changed file
with
36 additions
and
0 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 |
---|---|---|
|
@@ -14,6 +14,7 @@ on: # yamllint disable-line rule:truthy | |
|
||
defaults: | ||
run: | ||
shell: bash | ||
working-directory: code | ||
|
||
jobs: | ||
|
@@ -27,7 +28,23 @@ jobs: | |
- name: Install Rust | ||
run: ../misc/scripts/install_rust.sh | ||
|
||
- name: Run sccache-cache only on non-release runs | ||
if: github.event_name != 'release' && github.event_name != 'workflow_dispatch' | ||
uses: mozilla-actions/[email protected] | ||
|
||
- name: Set Rust caching env vars only on non-release runs | ||
if: github.event_name != 'release' && github.event_name != 'workflow_dispatch' | ||
run: | | ||
echo 'SCCACHE_GHA_ENABLED=true' >>"${GITHUB_ENV}" | ||
echo 'RUSTC_WRAPPER=sccache' >>"${GITHUB_ENV}" | ||
- name: Run sccache stat for check | ||
run: ${SCCACHE_PATH} --show-stats | ||
|
||
- name: Run all checks | ||
env: | ||
SCCACHE_GHA_ENABLED: 'true' | ||
RUSTC_WRAPPER: sccache | ||
run: >- | ||
cargo run -- -vv check | ||
|
@@ -46,10 +63,29 @@ jobs: | |
- name: Install Rust | ||
run: ../misc/scripts/install_rust.sh | ||
|
||
- name: Run sccache-cache only on non-release runs | ||
if: github.event_name != 'release' && github.event_name != 'workflow_dispatch' | ||
uses: mozilla-actions/[email protected] | ||
|
||
- name: Set Rust caching env vars only on non-release runs | ||
if: github.event_name != 'release' && github.event_name != 'workflow_dispatch' | ||
run: | | ||
echo 'SCCACHE_GHA_ENABLED=true' >>"${GITHUB_ENV}" | ||
echo 'RUSTC_WRAPPER=sccache' >>"${GITHUB_ENV}" | ||
- name: Run sccache stat for check | ||
run: ${SCCACHE_PATH} --show-stats | ||
|
||
- name: Run all unit-test | ||
env: | ||
SCCACHE_GHA_ENABLED: 'true' | ||
RUSTC_WRAPPER: sccache | ||
run: >- | ||
cargo run -- -vv u-test | ||
- name: Run all integration-tests | ||
env: | ||
SCCACHE_GHA_ENABLED: 'true' | ||
RUSTC_WRAPPER: sccache | ||
run: >- | ||
cargo run -- -vv i-test |