1717 CARGO_PROFILE_TEST_STRIP : " debuginfo"
1818 CARGO_PROFILE_RELEASE_STRIP : " debuginfo"
1919
20+ defaults :
21+ run :
22+ shell : bash # default shell on windows is pwsh
23+
2024jobs :
2125 pre_job :
2226 runs-on : ubuntu-latest
3135 test :
3236 name : All tests, lints, and checks
3337 if : ${{ needs.pre_job.outputs.should_skip != 'true' }}
34- timeout-minutes : 20
38+ timeout-minutes : 45
3539 needs : pre_job
3640 runs-on : ${{ matrix.os }}
3741 strategy :
4347 # For non-pull requests, event_name != 'pull_request' will be true, and 'nothing' is
4448 # truthy, so the entire && operator will resolve to 'nothing'. Then the || operator will
4549 # resolve to 'nothing' so we will exclude 'nothing'. https://stackoverflow.com/a/73822998
46- - rust_release : ${{ (github.event_name != 'pull_request' && github.event_name != 'push' && 'nothing') || 'latest-nightly' }}
47- - os : ${{ (github.event_name != 'pull_request' && github.event_name != 'push' && 'nothing') || 'windows-latest' }}
50+ - rust_release : ${{ ((( github.event_name != 'pull_request' && github.event_name != 'push') || (github.event_name == 'pull_request' && (contains(github.event.pull_request.title, '[ci-full]') || contains(github.event.pull_request.body, '[ci-full]')))) && 'nothing') || 'latest-nightly' }}
51+ - os : ${{ ((( github.event_name != 'pull_request' && github.event_name != 'push') || (github.event_name == 'pull_request' && (contains(github.event.pull_request.title, '[ci-full]') || contains(github.event.pull_request.body, '[ci-full]')))) && 'nothing') || 'windows-latest' }}
4852
4953 steps :
5054 - name : Checkout sources
5458 if : ${{ matrix.rust_release == 'latest-nightly' }}
5559 run : |
5660 rustup toolchain add nightly && \
57- rustup default nightly && \
58- rustup component add clippy && \
59- rustup component add rustfmt && \
60- rustup component add rust-src
61+ rustup default nightly
6162
6263 - if : matrix.rust_release == 'latest-stable' && matrix.os == 'ubuntu-latest'
6364 uses : ./.github/actions/use-sccache
7778 - run : cargo check --all-targets
7879 - run : cargo check --all-targets --no-default-features
7980
80- - if : ${{ matrix.rust_release == 'latest-stable' }}
81- run : cargo fmt --all -- --check
81+ - run : cargo fmt --all -- --check
8282
8383 test-wasm :
8484 name : Test Suite (WebAssembly)
9393 # # For non-pull requests, event_name != 'pull_request' will be true, and 'nothing' is
9494 # # truthy, so the entire && operator will resolve to 'nothing'. Then the || operator will
9595 # # resolve to 'nothing' so we will exclude 'nothing'. https://stackoverflow.com/a/73822998
96- - rust_release : ${{ (github.event_name != 'pull_request' && github.event_name != 'push' && 'nothing') || 'latest-nightly' }}
96+ - rust_release : ${{ ((( github.event_name != 'pull_request' && github.event_name != 'push') || (github.event_name == 'pull_request' && (contains(github.event.pull_request.title, '[ci-full]') || contains(github.event.pull_request.body, '[ci-full]')))) && 'nothing') || 'latest-nightly' }}
9797
9898 env :
9999 RUSTUP_TOOLCHAIN : ${{ matrix.rust_release == 'latest-nightly' && 'nightly' || '' }}
@@ -106,10 +106,7 @@ jobs:
106106 if : ${{ matrix.rust_release == 'latest-nightly' }}
107107 run : |
108108 rustup toolchain add nightly && \
109- rustup default nightly && \
110- rustup component add clippy && \
111- rustup component add rustfmt && \
112- rustup component add rust-src
109+ rustup default nightly
113110
114111 - name : Install wasm target
115112 run : rustup target add wasm32-unknown-unknown
0 commit comments