From b5074dca0583ffd68dee23dac9f60e1ca9b89689 Mon Sep 17 00:00:00 2001 From: Jay Oster Date: Tue, 12 Nov 2024 16:06:06 -0800 Subject: [PATCH] Add WASM target for Check and Test jobs Remove the Linux-specific dependencies for the WASM job. --- .github/workflows/ci.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2fecbce..95a9aa6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,9 @@ jobs: - stable - beta - 1.76.0 + target: + - x86_64-unknown-linux-gnu + - wasm32-unknown-unknown steps: - name: Checkout sources uses: actions/checkout@v3 @@ -25,6 +28,7 @@ jobs: uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.rust }} + target: ${{ matrix.target }} - name: Rust cache uses: Swatinem/rust-cache@v2 with: @@ -74,6 +78,9 @@ jobs: - stable - beta - 1.76.0 + target: + - x86_64-unknown-linux-gnu + - wasm32-unknown-unknown steps: - name: Checkout sources uses: actions/checkout@v3 @@ -85,6 +92,7 @@ jobs: uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.rust }} + target: ${{ matrix.target }} - name: Rust cache uses: Swatinem/rust-cache@v2 with: @@ -105,8 +113,6 @@ jobs: uses: actions/checkout@v3 - name: Update apt repos run: sudo apt -y update - - name: Install dependencies - run: sudo apt -y install libgtk-3-dev libudev-dev - name: Install toolchain uses: dtolnay/rust-toolchain@master with: