Skip to content

Commit ed9f256

Browse files
authored
[#patch] fix rust_ci (#210)
1 parent ebe8856 commit ed9f256

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/rust-ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ jobs:
6868
with:
6969
components: rustfmt
7070
toolchain: ${{ inputs.rust-version }}
71+
cache-workspaces: |-
72+
${{ inputs.working-directory }}
7173
- name: Check formatting
7274
run: cargo fmt -- --check
7375
- name: Build
@@ -101,6 +103,8 @@ jobs:
101103
# v1.13.0
102104
with:
103105
toolchain: ${{ inputs.rust-version }}
106+
cache-workspaces: |-
107+
${{ inputs.working-directory }}
104108
- name: Run tests
105109
run: cargo test --verbose
106110

@@ -134,6 +138,8 @@ jobs:
134138
with:
135139
components: clippy
136140
toolchain: ${{ inputs.rust-version }}
141+
cache-workspaces: |-
142+
${{ inputs.working-directory }}
137143
- run: cargo install cargo-make clippy-sarif sarif-fmt
138144
- name: Run clippy
139145
run: >
@@ -202,6 +208,8 @@ jobs:
202208
# v1.13.0
203209
with:
204210
toolchain: ${{ inputs.rust-version }}
211+
cache-workspaces: |-
212+
${{ inputs.working-directory }}
205213
- run: cargo install cargo-lambda
206214
- name: Build Lambda
207215
if: ${{ inputs.build-lambda || inputs.deploy-lambda }}

0 commit comments

Comments
 (0)