From 9a9e756940c2a1b49e3548b461ba7e429627a0fd Mon Sep 17 00:00:00 2001 From: rzmk Date: Tue, 20 Feb 2024 12:18:46 -0500 Subject: [PATCH] ci: add aarch64 macOS builds for releases --- .github/workflows/publish.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0f624bb..d7d75e1 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,9 +16,19 @@ jobs: strategy: fail-fast: false matrix: - platform: [macos-latest, ubuntu-latest, windows-latest] + settings: + # - platform: "macos-latest" + # args: "--target universal-apple-darwin" + - platform: "macos-latest" + args: "--target x86_64-apple-darwin" + - platform: "macos-latest" + args: "--target aarch64-apple-darwin" + - platform: "ubuntu-latest" + args: "--bundles appimage,deb,updater" + - platform: "windows-latest" + args: "" - runs-on: ${{ matrix.platform }} + runs-on: ${{ matrix.settings.platform }} steps: - uses: actions/checkout@v4 @@ -33,7 +43,7 @@ jobs: uses: dtolnay/rust-toolchain@stable - name: install dependencies (ubuntu only) - if: matrix.platform == 'ubuntu-latest' + if: matrix.settings.platform == 'ubuntu-latest' run: | sudo apt-get update sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev javascriptcoregtk-4.1 libsoup-3.0 webkit2gtk-4.1 librsvg2-dev patchelf @@ -50,3 +60,4 @@ jobs: releaseBody: "See the assets to download this version of fformat and install." releaseDraft: true prerelease: false + args: ${{ matrix.settings.args }}