From 4b9b2712df9ba64d811b586f2f35f7014118c6dd Mon Sep 17 00:00:00 2001 From: "Matheus T. dos Santos" Date: Thu, 8 Feb 2024 09:07:57 -0300 Subject: [PATCH] ci: fix github action to install dependencies on ubuntu --- .github/workflows/rust.yml | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d402e8e..e94a7f8 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -10,16 +10,26 @@ env: CARGO_TERM_COLOR: always jobs: - build: - name: Build on ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] + build-ubuntu: + name: Check on Ubuntu + runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Install libudev-sys run: sudo apt-get install -y libudev-dev - if: ${{ matrix.os }} == ubuntu-latest + - name: Build + run: cargo build --verbose + build-windows: + name: Check on Windows + runs-on: windows-latest + steps: + - uses: actions/checkout@v3 + - name: Build + run: cargo build --verbose + build-macos: + name: Check on MacOS + runs-on: macos-latest + steps: + - uses: actions/checkout@v3 - name: Build run: cargo build --verbose