feat(ci): multi-platform release matrix for macOS/Linux/Windows

This commit is contained in:
Offending Commit
2026-04-27 12:05:32 -05:00
parent 31fedd1f32
commit 7379c35a6b

View File

@@ -6,19 +6,42 @@ on:
- 'v*'
jobs:
release-macos:
runs-on: macos-latest
build:
strategy:
fail-fast: false
matrix:
include:
- os: macos-latest
target: aarch64-apple-darwin
- os: macos-latest
target: x86_64-apple-darwin
- os: ubuntu-22.04
target: x86_64-unknown-linux-gnu
- os: windows-latest
target: x86_64-pc-windows-msvc
runs-on: ${{ matrix.os }}
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Install Linux dependencies
if: matrix.os == 'ubuntu-22.04'
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
- uses: ./.github/actions/setup
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- name: Get release ID
id: get-release
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
@@ -30,3 +53,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
releaseId: ${{ steps.get-release.outputs.release_id }}
args: --target ${{ matrix.target }}