From adf2712b8d53efd70caf09b7a83394494b8e7635 Mon Sep 17 00:00:00 2001 From: rushi3691 Date: Tue, 26 Mar 2024 15:36:52 +0530 Subject: [PATCH] Update build-release.yml with platform and target configurations --- .github/workflows/build-release.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 3203627..998bf62 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -12,7 +12,22 @@ jobs: strategy: fail-fast: false matrix: - platform: [macos-latest, ubuntu-22.04, windows-latest] + # platform: [macos-latest, ubuntu-22.04, windows-latest] + settings: + - platform: 'macos-latest' + args: '--target universal-apple-darwin' + - platform: 'macos-latest' + args: '--target x86_64-apple-darwin' + - platform: 'macos-latest' + args: '--target aarch64-apple-darwin' + # - platform: 'macos-latest' + # # args: '--target aarch64-apple-darwin' + - platform: 'ubuntu-latest' + args: '' + - platform: 'windows-latest' + args: '--target x86_64-pc-windows-msvc' + - platform: 'windows-latest' + args: '--target i686-pc-windows-msvc' runs-on: ${{ matrix.platform }} steps: @@ -28,6 +43,8 @@ jobs: - name: Rust setup uses: dtolnay/rust-toolchain@stable + with: + targets: aarch64-apple-darwin - name: Rust cache uses: swatinem/rust-cache@v2 @@ -54,4 +71,5 @@ jobs: releaseName: 'Fortinet-connect v__VERSION__' # tauri-action replaces \_\_VERSION\_\_ with the app version. releaseBody: 'See the assets to download and install this version.' releaseDraft: true - prerelease: false \ No newline at end of file + prerelease: false + args: ${{ matrix.settings.args }} \ No newline at end of file