Skip to content

Commit 66a0c56

Browse files
committed
Move check step
1 parent e287687 commit 66a0c56

File tree

1 file changed

+21
-22
lines changed

1 file changed

+21
-22
lines changed

.github/workflows/cross_platforms_action.yml

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,7 @@ jobs:
1818
shell: sh
1919
run: |
2020
mv src/secret.key.sample src/secret.key
21-
22-
- name: Run cargo check
23-
uses: actions-rs/cargo@v1
24-
with:
25-
command: check
26-
args: --release
27-
21+
2822
- name: Cache cargo registry
2923
uses: actions/cache@v1
3024
with:
@@ -52,6 +46,11 @@ jobs:
5246
${{ runner.os }}-build-
5347
${{ runner.os }}-
5448
49+
- name: Run cargo check
50+
uses: actions-rs/cargo@v1
51+
with:
52+
command: check
53+
args: --release
5554

5655
- name: Run cargo fmt
5756
uses: actions-rs/cargo@v1
@@ -94,14 +93,6 @@ jobs:
9493
shell: cmd
9594
run: ren src\secret.key.sample secret.key
9695

97-
- name: Run cargo check
98-
uses: actions-rs/cargo@v1
99-
with:
100-
command: check
101-
args: --release
102-
env:
103-
RUSTFLAGS: -L D:\a\actix-web-rest-api-with-jwt\actix-web-rest-api-with-jwt\libs
104-
10596
- name: Cache cargo registry
10697
uses: actions/cache@v1
10798
with:
@@ -129,6 +120,14 @@ jobs:
129120
${{ runner.os }}-build-
130121
${{ runner.os }}-
131122
123+
- name: Run cargo check
124+
uses: actions-rs/cargo@v1
125+
with:
126+
command: check
127+
args: --release
128+
env:
129+
RUSTFLAGS: -L D:\a\actix-web-rest-api-with-jwt\actix-web-rest-api-with-jwt\libs
130+
132131
- name: Run cargo fmt
133132
uses: actions-rs/cargo@v1
134133
continue-on-error: true
@@ -167,13 +166,7 @@ jobs:
167166
shell: sh
168167
run: |
169168
mv src/secret.key.sample src/secret.key
170-
171-
- name: Run cargo check
172-
uses: actions-rs/cargo@v1
173-
with:
174-
command: check
175-
args: --release
176-
169+
177170
- name: Cache cargo registry
178171
uses: actions/cache@v1
179172
with:
@@ -201,6 +194,12 @@ jobs:
201194
${{ runner.os }}-build-
202195
${{ runner.os }}-
203196
197+
- name: Run cargo check
198+
uses: actions-rs/cargo@v1
199+
with:
200+
command: check
201+
args: --release
202+
204203
- name: Run cargo fmt
205204
uses: actions-rs/cargo@v1
206205
continue-on-error: true

0 commit comments

Comments
 (0)