File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change 2
2
# More info: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_iduses
3
3
4
4
# Common Rust CI setup that checkout the repo, installs the common toolchain
5
- # and set's up the cargo cache.
5
+ # and set's up the cargo cache. It builds, tests, and lints the code.
6
6
7
7
on :
8
8
workflow_call :
17
17
required : false
18
18
default : x86_64-unknown-linux-gnu
19
19
description : Rust target
20
- workspace-member :
21
- type : string
22
- required : false
23
- default : " ."
24
- description : Workspace member where actions should be done.
25
20
do-style-check :
26
21
type : boolean
27
22
required : false
60
55
key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
61
56
restore-keys : ${{ runner.os }}-cargo-
62
57
- run : cargo version
63
- - name : Select Workspace Member
64
- run : |
65
- cd ${{ inputs.workspace-member }}
66
58
- name : Code Formatting
67
59
if : ${{ inputs.do-style-check }}
68
60
run : cargo fmt --all -- --check
You can’t perform that action at this time.
0 commit comments