Skip to content

Commit 2fda7ee

Browse files
Build NSIS installer in Windows CI
1 parent d15631e commit 2fda7ee

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
-DCMAKE_TOOLCHAIN_FILE=$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake
4141
-DVCPKG_TARGET_TRIPLET=x64-windows
4242
-DVSCPD_BUILD_MANPAGES=OFF
43-
-DVSCPD_PACKAGE_GENERATORS=ZIP
43+
-DVSCPD_PACKAGE_GENERATORS=ZIP\;NSIS
4444
4545
steps:
4646
- name: Checkout
@@ -78,6 +78,14 @@ jobs:
7878
& "$env:RUNNER_TEMP/vcpkg/bootstrap-vcpkg.bat"
7979
"VCPKG_ROOT=$env:RUNNER_TEMP/vcpkg" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
8080
81+
- name: Install NSIS
82+
if: runner.os == 'Windows'
83+
shell: pwsh
84+
run: |
85+
choco install nsis -y --no-progress
86+
"C:\Program Files (x86)\NSIS" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
87+
& "C:\Program Files (x86)\NSIS\makensis.exe" /VERSION
88+
8189
- name: Configure
8290
shell: bash
8391
run: ${{ matrix.configure }}

0 commit comments

Comments
 (0)