-
Notifications
You must be signed in to change notification settings - Fork 997
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use environment so pull requests from other fork can run ci
- Loading branch information
Showing
2 changed files
with
10 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,9 @@ concurrency: | |
# If this is enabled it will cancel current running and start latest | ||
cancel-in-progress: true | ||
|
||
env: | ||
RUST_TOOLCHAIN: 1.73.0 | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
|
@@ -35,7 +38,7 @@ jobs: | |
- name: Install Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: ${{ vars.RUST_TOOLCHAIN }} | ||
toolchain: ${{ env.RUST_TOOLCHAIN }} | ||
|
||
- name: Sccache cache | ||
uses: mozilla-actions/[email protected] | ||
|
@@ -86,11 +89,11 @@ jobs: | |
- name: Install Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: ${{ vars.RUST_TOOLCHAIN }} | ||
toolchain: ${{ env.RUST_TOOLCHAIN }} | ||
target: ${{ matrix.target }} | ||
components: clippy | ||
|
||
- run: rustup default ${{ vars.RUST_TOOLCHAIN }} | ||
- run: rustup default ${{ env.RUST_TOOLCHAIN }} | ||
|
||
- name: Sccache cache | ||
uses: mozilla-actions/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters