refactor: Update GitHub Actions workflow to support multiple platforms

This commit is contained in:
kwaroran
2024-06-14 23:02:29 +09:00
parent 6aab8497fd
commit 3499f99f7f

View File

@@ -12,7 +12,16 @@ 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: