From 01fed2eae95d26f47575622e0bb048db989f7688 Mon Sep 17 00:00:00 2001 From: SondreB Date: Thu, 12 Dec 2024 22:50:35 +0100 Subject: [PATCH] Update workflow for ARM64 --- .github/workflows/build.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ca8c7689..752dc144 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -101,11 +101,16 @@ jobs: run: | mv src-tauri/target/release/bundle/dmg/Angor_${{ env.VERSION }}_aarch64.dmg src-tauri/target/release/bundle/dmg/angor-desktop-${{ env.VERSION }}-mac-aarch64.dmg - - name: Rename Mac files - if: matrix.os == 'windows-latest' + - name: Rename Windows files + if: matrix.runtime == 'win-x64' run: | mv src-tauri/target/release/bundle/msi/Angor_${{ env.VERSION }}_x64_en-US.msi src-tauri/target/release/bundle/msi/angor-desktop-${{ env.VERSION }}-win-x64.msi + - name: Rename Windows files + if: matrix.runtime == 'win-arm64' + run: | + mv src-tauri/target/release/bundle/msi/Angor_${{ env.VERSION }}_arm64_en-US.msi src-tauri/target/release/bundle/msi/angor-desktop-${{ env.VERSION }}-win-arm64.msi + - uses: actions/upload-artifact@v4 name: Upload Linux if: matrix.os == 'ubuntu-latest' @@ -122,11 +127,19 @@ jobs: - uses: actions/upload-artifact@v4 name: Upload Windows - if: matrix.os == 'windows-latest' + if: matrix.runtime == 'win-x64' with: name: angor-desktop-${{ env.VERSION }}-win-x64.msi path: src-tauri\target\release\bundle\msi\angor-desktop-${{ env.VERSION }}-win-x64.msi + - uses: actions/upload-artifact@v4 + name: Upload Windows + if: matrix.runtime == 'win-arm64' + with: + name: angor-desktop-${{ env.VERSION }}-win-arm64.msi + path: src-tauri\target\release\bundle\msi\angor-desktop-${{ env.VERSION }}-win-arm64.msi + + create-release: name: Publish (Release) needs: build