From a132f860a8bbaddf0563f96ff179ed325745b0b4 Mon Sep 17 00:00:00 2001 From: qu1ck Date: Wed, 13 Nov 2024 15:21:18 -0800 Subject: [PATCH] Update build script --- .github/workflows/build.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e8efbed..bc681d3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -35,6 +35,8 @@ jobs: rust_target: aarch64-apple-darwin - os: windows-latest rust_target: x86_64-pc-windows-msvc + - os: windows-latest + rust_target: aarch64-pc-windows-msvc runs-on: ${{ matrix.platform.os }} steps: @@ -59,12 +61,8 @@ jobs: cache: 'npm' - name: 'Setup Rust' - if: matrix.platform.rust_target == 'aarch64-apple-darwin' - run: rustup target add aarch64-apple-darwin - - - name: "Setup Rust" - if: matrix.platform.rust_target == 'x86_64-apple-darwin' - run: rustup target add x86_64-apple-darwin + if: matrix.platform.rust_target == 'aarch64-apple-darwin' || matrix.platform.rust_target == 'x86_64-apple-darwin' || matrix.platform.rust_target == 'aarch64-pc-windows-msvc' + run: rustup target add ${{matrix.platform.rust_target}} - uses: Swatinem/rust-cache@v2 with: @@ -76,13 +74,17 @@ jobs: if: matrix.platform.os == 'ubuntu-latest' run: | sudo apt-get update - sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf libasound2-dev libfontconfig-dev + sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libasound2-dev libfontconfig-dev + - name: install npm packages run: npm ci - uses: JonasKruckenberg/tauri-build@v1 id: tauri_build with: + projectPath: '.' + runner: npm run + args: -- target: ${{ matrix.platform.rust_target }} - name: Git status and version