Skip to content

Commit

Permalink
build: compile aarch64 for macos (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
DDtKey authored Jan 25, 2024
1 parent 33e4649 commit 714aaa8
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Release'
name: 'Release Desktop'

on:
workflow_dispatch:
Expand All @@ -10,9 +10,25 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-22.04, windows-latest]
settings:
- platform: macos-latest
target: x86_64-apple-darwin
bundles: app,dmg
- platform: macos-latest
target: aarch64-apple-darwin
bundles: app,dmg
- platform: ubuntu-latest
target: x86_64-unknown-linux-gnu
bundles: deb
# - platform: ubuntu-latest
# target: aarch64-unknown-linux-gnu
# bundles: deb
- platform: windows-latest
target: x86_64-pc-windows-msvc
bundles: msi

runs-on: ${{ matrix.platform }}
name: Desktop - ${{ matrix.settings.target }}
runs-on: ${{ matrix.settings.platform }}
steps:
- uses: actions/checkout@v4

Expand All @@ -24,10 +40,10 @@ jobs:
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
targets: 'wasm32-unknown-unknown,${{ matrix.settings.target }}'

- name: install dependencies (ubuntu only)
if: startsWith(matrix.platform, 'ubuntu-')
if: startsWith(matrix.settings.platform, 'ubuntu-')
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
Expand All @@ -45,3 +61,4 @@ jobs:
releaseBody: 'See the assets to download this version and install.'
releaseDraft: true
prerelease: false
args: --target ${{ matrix.settings.target }} --bundles ${{ matrix.settings.bundles }}

0 comments on commit 714aaa8

Please sign in to comment.