From 4d6a291ed33e5c7c77147bad9f21332c94875a51 Mon Sep 17 00:00:00 2001 From: readme-bot Date: Sat, 18 May 2024 15:21:20 +0300 Subject: [PATCH] update runs on, add mac x64 --- .github/workflows/test-on-pr.yaml | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-on-pr.yaml b/.github/workflows/test-on-pr.yaml index b785ee1..9ba472b 100644 --- a/.github/workflows/test-on-pr.yaml +++ b/.github/workflows/test-on-pr.yaml @@ -6,9 +6,25 @@ jobs: strategy: fail-fast: false matrix: - platform: [macos-latest, ubuntu-20.04, windows-latest] + include: + - build: linux + os: ubuntu-latest + arch: x86_64 + target: x86_64-unknown-linux-gnu + - build: macos + os: macos-latest + arch: x86_64 + target: x86_64-apple-darwin + - build: macos + os: macos-latest + arch: aarch64 + target: aarch64-apple-darwin + - build: windows + os: windows-latest + arch: x86_64 + target: x86_64-pc-windows-msvc - runs-on: ${{ matrix.platform }} + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 - name: setup node @@ -20,9 +36,9 @@ jobs: - name: Rust cache uses: swatinem/rust-cache@v2 with: - workspaces: './src-tauri -> target' + workspaces: "./src-tauri -> target" - name: install dependencies (ubuntu only) - if: matrix.platform == 'ubuntu-20.04' + if: matrix.os == 'ubuntu-20.04' run: | sudo apt-get update sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf