From 714aaa81da3def500df653b1f5bd01bb7733943d Mon Sep 17 00:00:00 2001 From: Artem Medvedev Date: Thu, 25 Jan 2024 16:22:50 +0100 Subject: [PATCH] build: compile `aarch64` for `macos` (#8) --- .github/workflows/release.yml | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2c418da..efa47fd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: 'Release' +name: 'Release Desktop' on: workflow_dispatch: @@ -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 @@ -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 @@ -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 }}