From 8701c99f695454defc66e0ecf9e93dfbd7d43ec1 Mon Sep 17 00:00:00 2001 From: josuebarretogit Date: Wed, 25 Dec 2024 21:06:29 -0500 Subject: [PATCH] ci(test.yml): update workflow to use rust nighlty latest --- .github/workflows/test.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d56966f..a98eb3b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,6 +9,7 @@ on: env: CARGO_TERM_COLOR: always RUST_BACKTRACE: full + RUST_TOOLCHAIN_VERSION : "nightly" jobs: check_code_format_and_lint: @@ -21,7 +22,10 @@ jobs: - name: setup toolchain uses: hecrj/setup-rust-action@v1 with: - rust-version: nightly-2024-06-25 + rust-version: ${{ env.RUST_TOOLCHAIN_VERSION }} + + - name: install_dependencies + run: sudo apt install libdbus-1-dev pkg-config - name: check-fmt run: cargo fmt --check @@ -29,6 +33,8 @@ jobs: - name: clippy run: cargo clippy -- -D warnings + + build_and_test: strategy: fail-fast: false @@ -44,7 +50,7 @@ jobs: - name: setup toolchain uses: hecrj/setup-rust-action@v1 with: - rust-version: nightly-2024-06-25 + rust-version: ${{ env.RUST_TOOLCHAIN_VERSION }} - name: check run: cargo check --locked