From d97ee5b2b6f1a6ef9670842160e24a64e38a86df Mon Sep 17 00:00:00 2001 From: Daniel Samson <12231216+daniel-samson@users.noreply.github.com> Date: Wed, 21 Jan 2026 23:08:41 +0000 Subject: [PATCH] fix(ci): use PowerShell for Windows builds The cmd.exe batch script wasn't executing the move command correctly. Switch to PowerShell for more reliable file operations on Windows. Co-Authored-By: Claude Opus 4.5 --- .github/workflows/build.yml | 7 ++++--- .github/workflows/release.yml | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7b85125..60ff96e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -86,10 +86,11 @@ jobs: - name: Build native image (Windows) if: runner.os == 'Windows' - shell: cmd + shell: pwsh run: | - mvn package -Pnative -DskipTests -Dspotbugs.skip=true -Dpmd.skip=true -Dcheckstyle.skip=true - move target\barn.exe target\${{ matrix.artifact }}.exe + mvn package -Pnative -DskipTests "-Dspotbugs.skip=true" "-Dpmd.skip=true" "-Dcheckstyle.skip=true" + Move-Item -Path "target\barn.exe" -Destination "target\${{ matrix.artifact }}.exe" -Force + Get-ChildItem target\*.exe - name: Upload artifact uses: actions/upload-artifact@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 53288d5..14fcb0d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,10 +42,11 @@ jobs: - name: Build native image (Windows) if: runner.os == 'Windows' - shell: cmd + shell: pwsh run: | - mvn package -Pnative -DskipTests -Dspotbugs.skip=true -Dpmd.skip=true -Dcheckstyle.skip=true - move target\barn.exe target\${{ matrix.artifact }}.exe + mvn package -Pnative -DskipTests "-Dspotbugs.skip=true" "-Dpmd.skip=true" "-Dcheckstyle.skip=true" + Move-Item -Path "target\barn.exe" -Destination "target\${{ matrix.artifact }}.exe" -Force + Get-ChildItem target\*.exe - name: Upload artifact uses: actions/upload-artifact@v4