From 38baaea557fc4e045ab9eac7af70fa07543e6ba9 Mon Sep 17 00:00:00 2001 From: Jose Celano Date: Wed, 27 Nov 2024 15:59:35 +0000 Subject: [PATCH] ci: [#1099] Add a new job to the testing workflow to test compilation in different OSs --- .github/workflows/testing.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/testing.yaml b/.github/workflows/testing.yaml index 124b13b5a..74dc254ef 100644 --- a/.github/workflows/testing.yaml +++ b/.github/workflows/testing.yaml @@ -85,6 +85,27 @@ jobs: name: Check Unused Dependencies run: cargo machete + build: + name: Build on ${{ matrix.os }} (${{ matrix.toolchain }}) + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + toolchain: [nightly, stable] + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - id: setup + name: Setup Toolchain + uses: dtolnay/rust-toolchain@stable + with: + toolchain: ${{ matrix.toolchain }} + + - name: Build project + run: cargo build --verbose unit: name: Units