File tree Expand file tree Collapse file tree 2 files changed +17
-16
lines changed Expand file tree Collapse file tree 2 files changed +17
-16
lines changed Original file line number Diff line number Diff line change 6
6
branches :
7
7
- main
8
8
9
+ permissions :
10
+ contents : read
11
+
9
12
env :
10
13
RUSTFLAGS : ' -Dwarnings'
11
14
@@ -19,19 +22,16 @@ jobs:
19
22
uses : actions/checkout@v5
20
23
21
24
- name : Set up Rust toolchain
22
- run : rustup toolchain install stable --no-self-update --profile default --target wasm32-unknown-unknown
23
-
24
- - name : Set up Rust cache
25
- uses : swatinem/rust-cache@v2
25
+ uses : actions-rust-lang/setup-rust-toolchain@v1
26
26
with :
27
- cache-on-failure : true
28
- save-if : ${{ github.ref == 'refs/heads/main' }}
27
+ components : clippy, rustfmt
28
+ target : wasm32-unknown-unknown
29
29
30
30
- name : Check formatting
31
31
run : cargo fmt --all --check
32
32
33
33
- name : Lint
34
- run : cargo clippy --all-features
34
+ run : cargo clippy --all-features --locked
35
35
36
36
- name : Test
37
- run : cargo test --all-features
37
+ run : cargo test --all-features --locked --release
Original file line number Diff line number Diff line change 5
5
branches :
6
6
- main
7
7
8
+ permissions :
9
+ contents : read
10
+
8
11
concurrency :
9
12
group : ${{ github.workflow }}-${{ github.ref }}
10
13
cancel-in-progress : false
@@ -13,21 +16,17 @@ jobs:
13
16
slides-build :
14
17
name : Build Slides
15
18
runs-on : ubuntu-latest
19
+
16
20
steps :
17
21
- uses : actions/checkout@v5
18
22
with :
19
23
fetch-depth : 0
20
24
21
25
- name : Set up Rust toolchain
22
- run : |
23
- rustup toolchain install stable --no-self-update --profile minimal
24
- rustup target add wasm32-unknown-unknown
25
-
26
- - name : Set up Rust cache
27
- uses : swatinem/rust-cache@v2
26
+ uses : actions-rust-lang/setup-rust-toolchain@v1
28
27
with :
29
- cache-on-failure : true
30
- save-if : ${{ github.ref == 'refs/heads/main' }}
28
+ components : clippy, rustfmt
29
+ target : wasm32-unknown-unknown
31
30
32
31
- name : Install Cargo Binary Install
33
32
uses : cargo-bins/cargo-binstall@main
@@ -54,10 +53,12 @@ jobs:
54
53
needs : slides-build
55
54
if : github.ref == 'refs/heads/main'
56
55
runs-on : ubuntu-latest
56
+
57
57
permissions :
58
58
contents : read
59
59
pages : write
60
60
id-token : write
61
+
61
62
steps :
62
63
- uses : actions/checkout@v5
63
64
with :
You can’t perform that action at this time.
0 commit comments