Support per-arch desktop builds and prune runtime artifacts

This commit is contained in:
Mohamed Boudra
2026-03-08 17:06:05 +07:00
parent 1e5e0f625d
commit ca787271b3
4 changed files with 153 additions and 209 deletions

View File

@@ -21,10 +21,17 @@ env:
jobs:
publish-macos:
strategy:
matrix:
include:
- runner: macos-14
rust_target: aarch64-apple-darwin
- runner: macos-13
rust_target: x86_64-apple-darwin
permissions:
contents: write
packages: read
runs-on: macos-latest
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v4
@@ -43,7 +50,7 @@ jobs:
- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
with:
targets: aarch64-apple-darwin,x86_64-apple-darwin
targets: ${{ matrix.rust_target }}
- name: Install JS dependencies
run: npm ci
@@ -111,7 +118,7 @@ jobs:
releaseBody: See the assets to download and install this version.
releaseDraft: false
prerelease: false
args: --target universal-apple-darwin
args: --target ${{ matrix.rust_target }}
publish-linux:
permissions: