Skip to content

Commit c2a1f82

Browse files
committed
bundle for windows
1 parent 2b53e7e commit c2a1f82

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

.github/workflows/internal-build-release-win64.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,31 @@ jobs:
2727
- name: Build Bundle
2828
shell: pwsh
2929
run: |
30-
echo "Current Directory $(pwd)"
30+
echo "Current Directory $(Get-Location)"
3131
# build the project
3232
dotnet publish .\src\CodeQLToolkit.Core\CodeQLToolkit.Core.csproj /p:PublishProfile=.\src\CodeQLToolkit.Core\Properties\PublishProfiles\Windows-x64.pubxml
3333
Copy-Item .\src\CodeQLToolkit.Core\bin\Release\net6.0\publish\windows-x64\CodeQLToolkit.Core.exe .\src\CodeQLToolkit.Core\bin\Release\net6.0\publish\windows-x64\qlt.exe
3434
35+
36+
- uses: actions/setup-python@v5
37+
with:
38+
python-version: '3.11'
39+
40+
- name: Build CodeQL Bundle Tool for Packaging
41+
shell: pwsh
42+
run: |
43+
# need this for the bundling to work.
44+
pip install poetry
45+
pip install -U pyinstaller
46+
47+
# run the packaging
48+
.\scripts\build_codeql_bundle_dist.ps1 -Version 0.2.0 -WorkDirectory dist -DestinationDirectory .\src\CodeQLToolkit.Core\bin\Release\net6.0\publish\windows-x64\tools\
49+
env:
50+
GH_TOKEN: ${{ github.token }}
51+
52+
- name: Build Bundle Archive
53+
shell: pwsh
54+
run: |
3555
# create bundle
3656
$ARCHIVE="$(Get-Location)/qlt-windows-x64.zip"
3757
Push-Location .\src\CodeQLToolkit.Core\bin\Release\net6.0\publish\windows-x64

0 commit comments

Comments
 (0)