Skip to content

Commit

Permalink
Merge pull request #17 from arkedge/get-ci-toolchain-from-config
Browse files Browse the repository at this point in the history
Get Rust CI toolchain from rust-toolchain
  • Loading branch information
sksat authored Apr 27, 2023
2 parents 0787f59 + 22ff6af commit 663e609
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/verify-crate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ jobs:
with:
submodules: recursive

- name: Get Rust toolchain
id: toolchain
working-directory: .
run: |
awk -F'[ ="]+' '$1 == "channel" { print "toolchain=" $2 }' rust-toolchain >> "$GITHUB_OUTPUT"
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
Expand All @@ -37,7 +43,7 @@ jobs:

- uses: dtolnay/rust-toolchain@v1
with:
toolchain: 1.65.0
toolchain: ${{ steps.toolchain.outputs.toolchain }}
components: clippy, rustfmt

- name: cache dependencies
Expand Down

0 comments on commit 663e609

Please sign in to comment.