mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-22 19:04:59 +00:00
ci: use Compress-Archive in Windows try to prevent Defender false positives
This commit is contained in:
parent
6877e05566
commit
5d0dec85a6
2 changed files with 8 additions and 3 deletions
5
.github/workflows/package.yml
vendored
5
.github/workflows/package.yml
vendored
|
@ -9,10 +9,10 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
windows:
|
windows:
|
||||||
name: Package Windows
|
name: Package Windows
|
||||||
runs-on: ubuntu-latest
|
runs-on: windows-2019
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
runtime: [win-x64, win-arm64]
|
runtime: [ win-x64, win-arm64 ]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout sources
|
- name: Checkout sources
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
@ -22,6 +22,7 @@ jobs:
|
||||||
name: sourcegit.${{ matrix.runtime }}
|
name: sourcegit.${{ matrix.runtime }}
|
||||||
path: build/SourceGit
|
path: build/SourceGit
|
||||||
- name: Package
|
- name: Package
|
||||||
|
shell: bash
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ inputs.version }}
|
VERSION: ${{ inputs.version }}
|
||||||
RUNTIME: ${{ matrix.runtime }}
|
RUNTIME: ${{ matrix.runtime }}
|
||||||
|
|
|
@ -9,4 +9,8 @@ cd build
|
||||||
|
|
||||||
rm -rf SourceGit/*.pdb
|
rm -rf SourceGit/*.pdb
|
||||||
|
|
||||||
zip "sourcegit_$VERSION.$RUNTIME.zip" -r SourceGit
|
if [[ "$OSTYPE" == "msys" || "$OSTYPE" == "cygwin" || "$OSTYPE" == "win32" ]]; then
|
||||||
|
powershell -Command "Compress-Archive -Path SourceGit\\* -DestinationPath \"sourcegit_$VERSION.$RUNTIME.zip\" -Force"
|
||||||
|
else
|
||||||
|
zip "sourcegit_$VERSION.$RUNTIME.zip" -r SourceGit
|
||||||
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue