Archived
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 <noreply@anthropic.com>
This commit is contained in:
1 parent
045f196552
commit
d97ee5b2b6
2 files changed
+8
-6
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user