From 0a4090c4b463e7b2b170e9f7836b53fb42bbdf91 Mon Sep 17 00:00:00 2001 From: Silvio Tomatis Date: Sat, 7 Dec 2024 16:29:11 +0100 Subject: [PATCH] Add target for arm64 windows build --- .github/workflows/build.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 72ea4c5..f3ba849 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -99,17 +99,18 @@ jobs: steps: - uses: actions/checkout@v4 - uses: moonrepo/setup-rust@v1 + - name: Install target + if: matrix.arch == 'arm64' + run: rustup target add aarch64-pc-windows-msvc - name: Build - run: | - cargo build --release --target ${{ matrix.arch == 'x64' && 'x86_64-pc-windows-msvc' || 'aarch64-pc-windows-msvc' }} + run: cargo build --release --target ${{ matrix.arch == 'x64' && 'x86_64-pc-windows-msvc' || 'aarch64-pc-windows-msvc' }} - name: Package run: | mkdir aardvark-${{ matrix.arch }} copy target/${{ matrix.arch == 'x64' && 'x86_64-pc-windows-msvc' || 'aarch64-pc-windows-msvc' }}/release/aardvark.exe aardvark-${{ matrix.arch }}/ # Add any additional DLLs or resources here - name: Create ZIP - run: | - Compress-Archive -Path aardvark-${{ matrix.arch }} -DestinationPath aardvark-windows-${{ matrix.arch }}.zip + run: Compress-Archive -Path aardvark-${{ matrix.arch }} -DestinationPath aardvark-windows-${{ matrix.arch }}.zip - name: Upload Artifact uses: actions/upload-artifact@v3 with: