From c1a5a5bdc655302073c0015aed2c21838b220398 Mon Sep 17 00:00:00 2001 From: Xavier Lau Date: Sat, 13 Jul 2024 02:17:30 +0800 Subject: [PATCH] Add missing dep --- .github/workflows/checks.yml | 2 +- .github/workflows/release.yml | 8 ++++++-- .github/workflows/staging.yml | 5 +++++ 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index c48d5b6..248e96c 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -33,7 +33,7 @@ jobs: run: | rustup show sudo apt-get update - sudo apt-get install libasound2-dev + sudo apt-get install libasound2-dev libxdo-dev - uses: Swatinem/rust-cache@v2 if: matrix.action != 'fmt' with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f4c3058..4102dae 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,8 +14,7 @@ jobs: runs-on: ${{ matrix.target.os }} strategy: matrix: - target: - [ + target: [ { name: aarch64-apple-darwin, os: macos-latest }, # { # name: x86_64-pc-windows-msvc, @@ -29,6 +28,11 @@ jobs: uses: actions/checkout@v4 - name: Setup Rust toolchain run: rustup target add ${{ matrix.target.name }} + - name: Setup build environment (Linux) + if: matrix.target.os == 'ubuntu-latest' + run: | + sudo apt-get update + sudo apt-get install libasound2-dev libxdo-dev - name: Build run: cargo build --profile ci-release --locked --target ${{ matrix.target.name }} - name: Compress diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index 76f9694..152f176 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -27,6 +27,11 @@ jobs: uses: actions/checkout@v4 - name: Setup Rust toolchain run: rustup target add ${{ matrix.target.name }} + - name: Setup build environment (Linux) + if: matrix.target.os == 'ubuntu-latest' + run: | + sudo apt-get update + sudo apt-get install libasound2-dev libxdo-dev - name: Build run: cargo build --profile ci-release --locked --target ${{ matrix.target.name }} - name: Compress