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