diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a5428bb..763d6c2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,6 +23,9 @@ jobs: - name: Install just uses: extractions/setup-just@v1 - run: echo "WORKING_DIR=$(basename $(pwd))" >> $GITHUB_ENV + - name: Install Dependencies + if: ${{ matrix.os }} == 'ubuntu-latest' + run: sudo apt-get install g++ pkg-config libx11-dev libasound2-dev libudev-dev libxkbcommon-x11-0 - name: Build shell: bash run: | diff --git a/.github/workflows/pr_action.yml b/.github/workflows/pr_action.yml index 709ee2d..db88ab3 100644 --- a/.github/workflows/pr_action.yml +++ b/.github/workflows/pr_action.yml @@ -15,17 +15,13 @@ jobs: uses: actions/checkout@v4.1.7 - name: Use the rust-toolchain uses: actions-rust-lang/setup-rust-toolchain@v1 + - name: Install dependencies + shell: bash + run: | + sudo apt-get install g++ pkg-config libx11-dev libasound2-dev libudev-dev libxkbcommon-x11-0 - name: Check fmt uses: actions-rust-lang/rustfmt@v1 - name: Check clippy run: cargo clippy - test: - name: cargo test - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4.1.7 - - name: Use the rust-toolchain - uses: actions-rust-lang/setup-rust-toolchain@v1 - - name: cargo test + - name: Check test run: cargo test --all-features