refactor: Update GitHub Actions workflow to support multiple platforms
This commit is contained in:
15
.github/workflows/github-actions-builder.yml
vendored
15
.github/workflows/github-actions-builder.yml
vendored
@@ -12,8 +12,17 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
platform: [ubuntu-latest,macos-latest,windows-latest]
|
||||
|
||||
# platform: [ubuntu-latest,macos-latest,windows-latest]
|
||||
settings:
|
||||
- platform: 'macos-latest' # for Arm based macs (M1 and above).
|
||||
args: '--target aarch64-apple-darwin'
|
||||
- platform: 'macos-latest' # for Intel based macs.
|
||||
args: '--target x86_64-apple-darwin'
|
||||
- platform: 'ubuntu-22.04' # for Tauri v1 you could replace this with ubuntu-20.04.
|
||||
args: '--target x86_64-unknown-linux-gnu'
|
||||
- platform: 'windows-latest'
|
||||
args: '--target x86_64-pc-windows-msvc'
|
||||
|
||||
runs-on: ${{ matrix.platform }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -71,4 +80,4 @@ jobs:
|
||||
releaseDraft: true
|
||||
prerelease: false
|
||||
args: ${{ matrix.settings.args }}
|
||||
tauriScript: "pnpm tauri"
|
||||
tauriScript: "pnpm tauri"
|
||||
Reference in New Issue
Block a user