forked from rayon-rs/rayon
-
Notifications
You must be signed in to change notification settings - Fork 11
40 lines (35 loc) · 1 KB
/
pr.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: PR
on: pull_request
# Using 16MB stacks for deep test/debug recursion
env:
RUST_MIN_STACK: 16777216
jobs:
check:
name: Check (1.59.0)
runs-on: ubuntu-latest
if: github.repository != 'rust-lang/rustc-rayon'
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@1.59.0
- 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@v3
- uses: dtolnay/rust-toolchain@stable
- run: cargo build --verbose
- run: cargo test --verbose --package rustc-rayon
- run: cargo test --verbose --package rustc-rayon-core
- run: ./ci/highlander.sh
if: github.repository != 'rust-lang/rustc-rayon'
fmt:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@1.67.1
with:
components: rustfmt
- run: cargo fmt --all --check