@@ -15,37 +15,53 @@ concurrency:
15
15
jobs :
16
16
clippy :
17
17
name : cargo clippy
18
- runs-on : ${{ matrix.runner }}
18
+ runs-on : ubuntu-latest
19
19
timeout-minutes : 30
20
20
env :
21
21
RUSTFLAGS : -Dwarnings
22
22
23
- strategy :
24
- fail-fast : false
25
- matrix :
26
- include :
27
- - runner : ubuntu-latest
28
- target : x86_64-unknown-linux-gnu
29
-
30
23
steps :
31
24
- name : Checkout
32
25
uses : actions/checkout@v4
33
26
34
27
- name : Setup toolchain
35
28
uses : dtolnay/rust-toolchain@1.74.1
36
29
with :
37
- targets : ${{ matrix.target }}
30
+ targets : x86_64-unknown-linux-gnu
38
31
components : clippy, rustfmt
39
32
40
33
- uses : Swatinem/rust-cache@v2
41
34
with :
42
- key : ${{ matrix.target }}
35
+ key : x86_64-unknown-linux-gnu
43
36
cache-on-failure : true
44
37
save-if : ${{ github.event_name != 'merge_group' }}
45
38
46
39
- name : Run `cargo clippy`
47
40
run : cargo clippy --all-targets --workspace --locked --release
48
41
42
+ rustfmt :
43
+ name : cargo fmt
44
+ runs-on : ubuntu-latest
45
+ timeout-minutes : 30
46
+ env :
47
+ RUSTFLAGS : -Dwarnings
48
+
49
+ steps :
50
+ - name : Checkout
51
+ uses : actions/checkout@v4
52
+
53
+ - name : Setup toolchain
54
+ uses : dtolnay/rust-toolchain@1.74.1
55
+ with :
56
+ targets : x86_64-unknown-linux-gnu
57
+ components : clippy, rustfmt
58
+
59
+ - uses : Swatinem/rust-cache@v2
60
+ with :
61
+ key : x86_64-unknown-linux-gnu
62
+ cache-on-failure : true
63
+ save-if : ${{ github.event_name != 'merge_group' }}
64
+
49
65
- name : Run `cargo fmt`
50
66
run : cargo fmt --all --check
51
67
88
104
run : |
89
105
mkdir dist
90
106
cp ./target/release/nargo ./dist/nargo
91
- 7z a -ttar -so -an ./dist/* | 7z a -si ./nargo-x86_64-unknown-linux-gnu.tar.gz
92
107
93
108
- name : Upload artifact
94
109
uses : actions/upload-artifact@v4
0 commit comments