File tree Expand file tree Collapse file tree 2 files changed +68
-0
lines changed
Expand file tree Collapse file tree 2 files changed +68
-0
lines changed Original file line number Diff line number Diff line change 1+ # A few guiding principles.
2+ #
3+ # * Always use actions-rust-lang/setup-rust-toolchain for its built-in caching.
4+ # * Complexity lives in the justfile, this runner is as light as possible.
5+
6+ name : CI
7+
8+ # Run on direct commits to master, including merges, and any pull requests against master.
9+ on :
10+ push :
11+ branches :
12+ - master
13+ pull_request :
14+ branches :
15+ - master
16+
17+ jobs :
18+ # Quick canary of code as well as potential issues with upcoming toolchains.
19+ check :
20+ strategy :
21+ matrix :
22+ toolchain : [stable, beta, nightly]
23+ runs-on : ubuntu-latest
24+ steps :
25+ - uses : actions/checkout@v4
26+ - uses : extractions/setup-just@v3
27+ - uses : actions-rust-lang/setup-rust-toolchain@v1
28+ with :
29+ toolchain : ${{ matrix.toolchain }}
30+ components : clippy,rustfmt
31+ - run : just check
32+ # Build and test the code across platforms.
33+ test :
34+ strategy :
35+ matrix :
36+ platform : [ubuntu-latest, macos-latest, windows-latest]
37+ runs-on : ${{ matrix.platform }}
38+ steps :
39+ - uses : actions/checkout@v4
40+ - uses : extractions/setup-just@v3
41+ - uses : actions-rust-lang/setup-rust-toolchain@v1
42+ - run : just test
43+
Original file line number Diff line number Diff line change 1+ # Attempt to detect any upcoming breaking changes if CI hasn't been run in awhile.
2+ name : Weekly Check
3+
4+ on :
5+ # Allows manual triggering.
6+ workflow_dispatch :
7+ schedule :
8+ # Run at midnight on Sundays.
9+ - cron : " 0 0 * * 0"
10+
11+ jobs :
12+ # Quick canary of code as well as potential issues with upcoming toolchains.
13+ check :
14+ strategy :
15+ matrix :
16+ toolchain : [stable, beta, nightly]
17+ runs-on : ubuntu-latest
18+ steps :
19+ - uses : actions/checkout@v4
20+ - uses : extractions/setup-just@v3
21+ - uses : actions-rust-lang/setup-rust-toolchain@v1
22+ with :
23+ toolchain : ${{ matrix.toolchain }}
24+ components : clippy,rustfmt
25+ - run : just check
You can’t perform that action at this time.
0 commit comments