55 branches :
66 - main
77
8+ permissions :
9+ contents : read
10+
811concurrency :
912 group : ${{ github.workflow }}-${{ github.ref }}
1013 cancel-in-progress : false
@@ -13,19 +16,15 @@ jobs:
1316 book-test :
1417 name : Test Book
1518 runs-on : ubuntu-latest
19+
1620 steps :
1721 - uses : actions/checkout@v5
1822
1923 - name : Set up Rust toolchain
20- run : |
21- rustup toolchain install stable --no-self-update --profile minimal
22- rustup target add wasm32-unknown-unknown
23-
24- - name : Set up Rust cache
25- uses : swatinem/rust-cache@v2
24+ uses : actions-rust-lang/setup-rust-toolchain@v1
2625 with :
27- cache-on-failure : true
28- save-if : ${{ github.ref == 'refs/heads/main' }}
26+ components : clippy, rustfmt
27+ target : wasm32-unknown-unknown
2928
3029 - name : Install Cargo Binary Install
3130 uses : cargo-bins/cargo-binstall@main
@@ -41,21 +40,17 @@ jobs:
4140 name : Build Book
4241 needs : book-test
4342 runs-on : ubuntu-latest
43+
4444 steps :
4545 - uses : actions/checkout@v5
4646 with :
4747 fetch-depth : 0
4848
4949 - name : Set up Rust toolchain
50- run : |
51- rustup toolchain install stable --no-self-update --profile minimal
52- rustup target add wasm32-unknown-unknown
53-
54- - name : Set up Rust cache
55- uses : swatinem/rust-cache@v2
50+ uses : actions-rust-lang/setup-rust-toolchain@v1
5651 with :
57- cache-on-failure : true
58- save-if : ${{ github.ref == 'refs/heads/main' }}
52+ components : clippy, rustfmt
53+ target : wasm32-unknown-unknown
5954
6055 - name : Install Cargo Binary Install
6156 uses : cargo-bins/cargo-binstall@main
@@ -87,10 +82,12 @@ jobs:
8782 needs : book-build
8883 if : github.ref == 'refs/heads/main'
8984 runs-on : ubuntu-latest
85+
9086 permissions :
9187 contents : read
9288 pages : write
9389 id-token : write
90+
9491 steps :
9592 - uses : actions/checkout@v5
9693 with :
0 commit comments