diff options
Diffstat (limited to '.github/workflows/release.yml')
| -rw-r--r-- | .github/workflows/release.yml | 34 |
1 files changed, 30 insertions, 4 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4833889..23d4181 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -50,7 +50,7 @@ jobs: prerelease: false build-tauri: - name: Build & Upload (${{ matrix.platform }}) + name: Build & Upload (${{ matrix.name }}) needs: promote-release permissions: contents: write @@ -59,18 +59,38 @@ jobs: matrix: include: - platform: "ubuntu-22.04" + name: "Linux x86_64" + target: "x86_64-unknown-linux-gnu" args: "--target x86_64-unknown-linux-gnu" + - platform: "ubuntu-24.04-arm" + name: "Linux ARM64" + target: "aarch64-unknown-linux-gnu" + args: "--target aarch64-unknown-linux-gnu" - platform: "macos-latest" + name: "macOS ARM64" + target: "aarch64-apple-darwin" args: "--target aarch64-apple-darwin" - platform: "windows-latest" + name: "Windows x86_64" + target: "x86_64-pc-windows-msvc" args: "--target x86_64-pc-windows-msvc" + - platform: "windows-11-arm" + name: "Windows ARM64" + target: "aarch64-pc-windows-msvc" + args: "--target aarch64-pc-windows-msvc" runs-on: ${{ matrix.platform }} steps: - uses: actions/checkout@v4 - - name: Install Dependencies (Linux) - if: runner.os == 'Linux' + - name: Install Dependencies (Linux x86_64) + if: matrix.platform == 'ubuntu-22.04' + run: | + sudo apt-get update + sudo apt-get install -y libwebkit2gtk-4.1-dev build-essential curl wget file libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev + + - name: Install Dependencies (Linux ARM64) + if: matrix.platform == 'ubuntu-24.04-arm' run: | sudo apt-get update sudo apt-get install -y libwebkit2gtk-4.1-dev build-essential curl wget file libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev @@ -94,7 +114,13 @@ jobs: - name: Install Rust uses: dtolnay/rust-toolchain@stable with: - targets: ${{ matrix.platform == 'macos-14' && 'aarch64-apple-darwin' || '' }} + targets: ${{ matrix.target }} + + - name: Rust Cache + uses: swatinem/rust-cache@v2 + with: + workspaces: "./src-tauri -> target" + shared-key: ${{ matrix.target }} - name: Build Tauri App uses: tauri-apps/tauri-action@v0 |