From 7527760481c02bd0839ea7d2229a748231211ed5 Mon Sep 17 00:00:00 2001 From: GroovieGermanikus Date: Wed, 13 Sep 2023 16:16:20 +0200 Subject: [PATCH] =?UTF-8?q?pick=20up=20rust-toolchain.toml=20for=20CI?= =?UTF-8?q?=C2=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build_test.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index 2dc85bf..5407054 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -13,23 +13,23 @@ jobs: name: Rust project - latest runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - # The toolchain action should definitely be run before the cache action - - uses: actions-rust-lang/setup-rust-toolchain@v1 - with: - toolchain: stable - components: rustfmt, clippy - cache: false - # avoid the default "-D warnings" which thrashes cache - rustflags: "" - - name: Install Dependencies run: | sudo apt-get update -y sudo apt-get upgrade -y sudo apt-get install libssl-dev openssl -y + - uses: actions/checkout@v4 + + # The toolchain action should definitely be run before the cache action + - uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + # use toolchain version from rust-toolchain.toml + components: rustfmt, clippy + cache: false + # avoid the default "-D warnings" which thrashes cache + rustflags: "" + # https://github.com/actions/cache/blob/main/examples.md#rust---cargo - uses: actions/cache@v3 with: