From ced5fc6e033d1e7109a31db197c3df69a5c251d4 Mon Sep 17 00:00:00 2001 From: geri1701 Date: Sun, 18 Feb 2024 15:22:40 +0100 Subject: [PATCH] Update rust.yml --- .github/workflows/rust.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 647d498..3c4fa7d 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -2,21 +2,21 @@ name: Rust on: push: - branches: [ "main" ] pull_request: - branches: [ "main" ] -env: +env: CARGO_TERM_COLOR: always jobs: - build: - + build_and_test: + name: Rust project - latest runs-on: ubuntu-latest - + strategy: + matrix: + toolchain: + - stable steps: - - uses: actions/checkout@v3 - - name: Build - run: sudo apt-get install libx11-dev libxext-dev libxft-dev libxinerama-dev libxcursor-dev libxrender-dev libxfixes-dev libpango1.0-dev mesa && cargo build --verbose - - name: Run tests - run: cargo test --verbose + - uses: actions/checkout@v3 + - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} + - run: cargo build --verbose + - run: cargo test --verbose