File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed
Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,6 @@ name: Build, Test and Publish Rust Package
33on :
44 workflow_call :
55 inputs :
6- rust-version :
7- description : ' Rust version to use'
8- default : ' stable'
9- type : string
106 working-directory :
117 description : ' The directory to run jobs from'
128 default : ' .'
3430 - name : Checkout repository
3531 uses : actions/checkout@v4
3632
37- - name : Install Rust toolchain
38- uses : dtolnay/rust-toolchain@stable
39- with :
40- toolchain : ${{ inputs.rust-version }}
41- components : clippy, rustfmt, cargo
33+ - name : Add clippy and rustfmt
34+ run : rustup component add clippy rustfmt
4235
4336 - name : Cache dependencies
4437 if : ${{ inputs.enable-cache }}
Original file line number Diff line number Diff line change 2222 build-and-test :
2323 uses : iExecBlockchainComputing/github-actions-workflows/.github/workflows/rust-build.yml@main
2424 with :
25- rust-version : ' stable'
2625 working-directory : ' ./my-crate'
2726 enable-cache : true
2827 publish-crates-io : false
3433
3534| Name | Description | Default | Required |
3635| ------------------- | --------------------------------------------------------- | -------- | -------- |
37- | ` rust-version` | Rust version to use | `stable` | No |
3836| ` working-directory` | The directory to run jobs from | `.` | No |
3937| `enable-cache` | Enable caching of dependencies | `true` | No |
4038| `publish-crates-io` | Publish the package to crates.io (only if build succeeds) | `false` | No |
You can’t perform that action at this time.
0 commit comments