Skip to content

Commit

Permalink
ci: build aarch64 and x86_64 seperately
Browse files Browse the repository at this point in the history
  • Loading branch information
ZerNico committed Oct 29, 2023
1 parent 2493e77 commit e4324b1
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/release-tauri.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,27 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-20.04, windows-latest]
platform:
[
{ os: 'macos-latest', target: 'aarch64-apple-darwin' },
{ os: 'macos-latest', target: 'x86_64-apple-darwin' },
{ os: 'ubuntu-20.04', target: 'x86_64-unknown-linux-gnu' },
{ os: 'windows-latest', target: 'x86_64-pc-windows-msvc' },
]

runs-on: ${{ matrix.platform }}
runs-on: ${{ matrix.platform.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v3

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

- name: Rust setup
Expand Down Expand Up @@ -78,4 +84,4 @@ jobs:
releaseDraft: true
prerelease: false
projectPath: ./apps/tauri
args: ${{ matrix.platform == 'macos-latest' && '--target universal-apple-darwin' || '' }}
args: --target ${{ matrix.platform.target }}

0 comments on commit e4324b1

Please sign in to comment.