From 09102e9122b5db06f1a2dcf7b055af317654e9ad Mon Sep 17 00:00:00 2001 From: Silvio Tomatis Date: Sun, 8 Dec 2024 00:43:51 +0100 Subject: [PATCH] ci: Uncomment Windows build and packaging steps in GitHub workflow --- .github/workflows/build.yml | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 98e5ab4..b14ea27 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -248,21 +248,21 @@ jobs: pkg-config --debug --print-errors --cflags --libs glib-2.0 pkg-config --debug --print-errors --cflags --libs gtk4 libadwaita-1 shell: pwsh - # - name: Build - # run: | - # $arch = "${{ matrix.arch }}" - # $target = if ($arch -eq "x64") { "x86_64-pc-windows-msvc" } else { "aarch64-pc-windows-msvc" } - # cargo build --release --target $target - # shell: pwsh - # - 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 - # - name: Upload Artifact - # uses: actions/upload-artifact@v3 - # with: - # name: aardvark-windows-${{ matrix.arch }} - # path: aardvark-windows-${{ matrix.arch }}.zip + - name: Build + run: | + $arch = "${{ matrix.arch }}" + $target = if ($arch -eq "x64") { "x86_64-pc-windows-msvc" } else { "aarch64-pc-windows-msvc" } + cargo build --release --target $target + shell: pwsh + - 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 + - name: Upload Artifact + uses: actions/upload-artifact@v3 + with: + name: aardvark-windows-${{ matrix.arch }} + path: aardvark-windows-${{ matrix.arch }}.zip