Fixing docs #441
Workflow file for this run
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
name: PR | |
on: pull_request | |
# Using 16MB stacks for deep test/debug recursion | |
env: | |
RUST_MIN_STACK: 16777216 | |
jobs: | |
check: | |
name: Check (1.63.0) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: ~/.cargo/registry/index | |
key: cargo-git-index | |
- uses: dtolnay/[email protected] | |
- run: cp ci/compat-Cargo.lock ./Cargo.lock | |
- run: cargo check --verbose --locked | |
test: | |
name: Test (stable) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- run: cargo build --verbose | |
- run: cargo test --verbose --package rayon | |
- run: cargo test --verbose --package rayon-core | |
- run: ./ci/highlander.sh | |
fmt: | |
name: Format | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/[email protected] | |
with: | |
components: rustfmt | |
- run: cargo fmt --all --check | |
# One job that "summarizes" the success state of this pipeline. This can then be added to branch | |
# protection, rather than having to add each job separately. | |
success: | |
name: Success | |
runs-on: ubuntu-latest | |
needs: [check, test, fmt] | |
# Github branch protection is exceedingly silly and treats "jobs skipped because a dependency | |
# failed" as success. So we have to do some contortions to ensure the job fails if any of its | |
# dependencies fails. | |
if: always() # make sure this is never "skipped" | |
steps: | |
# Manually check the status of all dependencies. `if: failure()` does not work. | |
- name: check if any dependency failed | |
run: jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}' |