Skip to content

Commit

Permalink
ci: build universal build
Browse files Browse the repository at this point in the history
  • Loading branch information
ZerNico committed Oct 29, 2023
1 parent bd9b1b6 commit 36ddb54
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release-tauri.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
- main
paths:
- 'apps/tauri/**'
- '.github/workflows/release-tauri.yml'

jobs:
publish-tauri:
Expand All @@ -20,12 +21,16 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: install dependencies (ubuntu only)
- name: Install dependencies (ubuntu only)
if: matrix.platform == '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 libasound2-dev alsa
- name: Install rust apple arm target (macos only)
if: matrix.platform == 'macos-latest'
run: rustup target add aarch64-apple-darwin

- name: Rust setup
uses: dtolnay/rust-toolchain@stable

Expand All @@ -40,7 +45,7 @@ jobs:
with:
version: 7
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
shell: bash
Expand Down Expand Up @@ -72,4 +77,5 @@ jobs:
releaseBody: 'See the assets to download this version and install.'
releaseDraft: true
prerelease: false
projectPath: ./apps/tauri
projectPath: ./apps/tauri
args: ${{ matrix.platform == 'macos-latest' && '--target universal-apple-darwin' || '' }}

0 comments on commit 36ddb54

Please sign in to comment.