diff --git a/.gitea/workflows/build-and-deploy.yaml b/.gitea/workflows/build-and-deploy.yaml index c90e776..4314251 100644 --- a/.gitea/workflows/build-and-deploy.yaml +++ b/.gitea/workflows/build-and-deploy.yaml @@ -20,12 +20,16 @@ jobs: uses: actions/checkout@v4 - name: Set up Rust toolchain - uses: actions-rust-lang/setup-rust-toolchain@v1 - with: - cache: false + run: | + rustup update stable + rustup default stable + env: + RUSTFLAGS: -D warnings - name: Run tests run: cargo test --all-targets --all-features + env: + RUSTFLAGS: -D warnings lint: needs: test @@ -35,10 +39,10 @@ jobs: uses: actions/checkout@v4 - name: Set up Rust toolchain - uses: actions-rust-lang/setup-rust-toolchain@v1 - with: - components: rustfmt, clippy - cache: false + run: | + rustup update stable + rustup default stable + rustup component add rustfmt clippy - name: Cargo fmt run: cargo fmt --all -- --check