@@ -16,12 +16,16 @@ jobs:
1616 rust : [stable, nightly]
1717 steps :
1818 - name : Checkout the source code
19- uses : actions/checkout@master
19+ uses : actions/checkout@v2
2020 with :
2121 fetch-depth : 1
2222
23- - name : Setup Rust ${{ matrix.rust }}
24- run : rustup set profile minimal && rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }}
23+ - name : Install Rust toolchain
24+ uses : actions-rs/toolchain@v1
25+ with :
26+ toolchain : ${{ matrix.rust }}
27+ profile : minimal
28+ override : true
2529
2630 - name : Build chalk-engine without default features
2731 run : cd chalk-engine && cargo build --no-default-features
@@ -69,27 +73,28 @@ jobs:
6973 runs-on : ubuntu-latest
7074 steps :
7175 - name : Checkout the source code
72- uses : actions/checkout@master
76+ uses : actions/checkout@v2
7377 with :
7478 fetch-depth : 1
7579
76- - name : Setup Rust stable with rustfmt
77- run : |
78- rustup set profile minimal
79- rustup update stable --no-self-update
80- rustup default stable
81- rustup component add rustfmt
80+ - name : Install Rust toolchain
81+ uses : actions-rs/toolchain@v1
82+ with :
83+ toolchain : stable
84+ profile : minimal
85+ override : true
86+ components : rustfmt
8287
8388 - name : Check formatting of all crates in the workspace
8489 run : cargo fmt --all -- --check
85-
90+
8691 mdbook-linkcheck :
8792 name : Book link check
8893 runs-on : ubuntu-latest
8994 if : github.ref != 'refs/heads/master'
9095 steps :
9196 - name : Checkout the source code
92- uses : actions/checkout@master
97+ uses : actions/checkout@v2
9398 with :
9499 fetch-depth : 1
95100
0 commit comments