打包测试x3

This commit is contained in:
BTMuli
2023-12-09 13:44:14 +08:00
parent ad55e56651
commit e94e3a6821

View File

@@ -11,14 +11,20 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
platform: [windows-latest, macos-latest] settings:
runs-on: ${{ matrix.platform }} - platform: windows-latest
args: "--verbose"
- platform: macos-latest
args: "--target x86_64-apple-darwin"
- platform: macos-latest
args: "--target aarch64-apple-darwin"
runs-on: ${{ matrix.settings.platform }}
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Add Rust targets(macOS) - name: Add Rust targets(macOS)
if: matrix.platform == 'macos-latest' if: matrix.settings.platform == 'macos-latest'
run: rustup target add aarch64-apple-darwin run: rustup target add aarch64-apple-darwin
- name: Rust setup - name: Rust setup
@@ -46,6 +52,7 @@ jobs:
# TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} # TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
# TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} # TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
with: with:
args: ${{ matrix.settings.args }}
tagName: v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version tagName: v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
releaseName: v__VERSION__-beta releaseName: v__VERSION__-beta
releaseBody: | releaseBody: |