File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 99jobs :
1010 windows :
1111 name : Package Windows
12- runs-on : ubuntu-latest
12+ runs-on : windows-2019
1313 strategy :
1414 matrix :
15- runtime : [win-x64, win-arm64]
15+ runtime : [ win-x64, win-arm64 ]
1616 steps :
1717 - name : Checkout sources
1818 uses : actions/checkout@v4
2222 name : sourcegit.${{ matrix.runtime }}
2323 path : build/SourceGit
2424 - name : Package
25+ shell : bash
2526 env :
2627 VERSION : ${{ inputs.version }}
2728 RUNTIME : ${{ matrix.runtime }}
Original file line number Diff line number Diff line change 99
1010rm -rf SourceGit/* .pdb
1111
12- zip " sourcegit_$VERSION .$RUNTIME .zip" -r SourceGit
12+ if [[ " $OSTYPE " == " msys" || " $OSTYPE " == " cygwin" || " $OSTYPE " == " win32" ]]; then
13+ powershell -Command " Compress-Archive -Path SourceGit\\ * -DestinationPath \" sourcegit_$VERSION .$RUNTIME .zip\" -Force"
14+ else
15+ zip " sourcegit_$VERSION .$RUNTIME .zip" -r SourceGit
16+ fi
You can’t perform that action at this time.
0 commit comments