From 4fcb760823db4bf8086ac4fb47163e5a3f857dfb Mon Sep 17 00:00:00 2001 From: Enow Scott <148756598+Blindspot22@users.noreply.github.com> Date: Mon, 1 Jul 2024 16:56:56 +0100 Subject: [PATCH] Update rust.yml --- .github/workflows/rust.yml | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 4c25a3d..cb8e81a 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -2,21 +2,30 @@ name: Rust on: push: - branches: [ "main" ] + branches: + - main pull_request: - branches: [ "main" ] - -env: - CARGO_TERM_COLOR: always + branches: + - main jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - name: Build - run: cargo build - - name: Run tests - run: cargo test + - name: Check out the repository + uses: actions/checkout@v2 + + - name: Install Rust toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + profile: minimal + override: true + + - name: Add rust-src component + run: rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu + + - name: Build the project + run: cargo build --verbose +