Use axum-macros/rust-toolchain file in ci (#1939)

This commit is contained in:
tottoto 2023-04-17 17:55:18 +09:00 committed by GitHub
parent de7dc69eeb
commit 018d65da14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -86,10 +86,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get rust-toolchain version
id: rust-toolchain
run: echo "version=$(cat axum-macros/rust-toolchain)" >> $GITHUB_OUTPUT
- uses: dtolnay/rust-toolchain@master
with:
# same as `axum-macros/rust-toolchain`
toolchain: nightly-2022-11-18
toolchain: ${{ steps.rust-toolchain.outputs.version }}
- uses: Swatinem/rust-cache@v2
- name: Run nightly tests
working-directory: axum-macros