From 945521a31f7a6d993a3db2ee0e8f12bf12a625f7 Mon Sep 17 00:00:00 2001 From: hacknus Date: Sat, 9 Mar 2024 10:11:27 +0100 Subject: [PATCH] include apple silicon build --- .github/workflows/deployment.yml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 787ea2b..52f38dc 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -33,7 +33,7 @@ jobs: asset_name: rust-serial-monitor-linux_x86.deb asset_content_type: binary - build-macos: + build-macos-intel: permissions: write-all name: macos runs-on: macos-11 @@ -55,6 +55,28 @@ jobs: asset_name: rust-serial-monitor-macos_x86.app.zip asset_content_type: binary + build-macos-apple-silicon: + permissions: write-all + name: macos apple silicon + runs-on: macos-14 + steps: + - uses: actions/checkout@v3 + - name: Update Libs + run: cargo install cargo-bundle + - name: Build + run: cargo bundle --release + - name: Compress + run: cd target/release/bundle/osx && ls && zip -r rust-serial-monitor.app.zip Serial\ Monitor.app/* + - name: Upload + uses: actions/upload-release-asset@v1.0.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ github.event.release.upload_url }} + asset_path: ./target/release/bundle/osx/rust-serial-monitor.app.zip + asset_name: rust-serial-monitor-macos_apple_silicon.app.zip + asset_content_type: binary + build-windows: permissions: write-all name: windows