diff options
author | Dario Lombardo <lomato@gmail.com> | 2020-03-05 13:49:59 +0100 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2020-03-08 19:04:25 +0000 |
commit | 4b0e80077323daf0099156d8e6ced0f7bf3de2a6 (patch) | |
tree | fba19208f6bf2eca972385f5859b776284cc2985 /.github | |
parent | 9cdff50e1898ca16f1752c5cce58c98cedd54c23 (diff) |
github: create Windows package and upload it as artifact.
Change-Id: I88e19514a56630a4946338c6109b801c98526a44
Reviewed-on: https://code.wireshark.org/review/36321
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/windows.yml | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 69ecb284e5..c96af9512a 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -10,13 +10,19 @@ jobs: - name: Checkout uses: actions/checkout@v2 - name: Choco install - run: cinst -y --no-progress --force winflexbison3 cmake + run: cinst -y --force --no-progress asciidoctorj xsltproc docbook-bundle winflexbison3 cmake nsis - name: Install strawberryperl run: | choco install strawberryperl echo "##[add-path]C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin" - name: Install Qt uses: jurplel/install-qt-action@v2 + - name: Add msbuild to PATH + uses: microsoft/setup-msbuild@v1.0.0 + with: + vs-version: 16.4 + - name: Set MSVC command prompt + uses: ilammy/msvc-dev-cmd@v1 - name: Mkdir run: mkdir build - name: Cmake @@ -29,6 +35,9 @@ jobs: - name: Build run: cmake --build . --config RelWithDebInfo working-directory: build + - name: Build guides + run: cmake --build . --config RelWithDebInfo --target user_guide_chm + working-directory: build - name: Build test-programs run: cmake --build . --config RelWithDebInfo --target test-programs working-directory: build @@ -43,3 +52,17 @@ jobs: PYTEST_ADDOPTS: --skip-missing-programs=rawshark run: pytest working-directory: build + - name: Build Windows pkg + run: | + msbuild /m /p:Configuration=RelWithDebInfo nsis_package_prep.vcxproj + msbuild /m /p:Configuration=RelWithDebInfo nsis_package.vcxproj + working-directory: build + - name: Move Windows packages + run: | + mkdir exe + mv build/packaging/nsis/*exe exe/ + - name: Upload Windows packages + uses: actions/upload-artifact@v1 + with: + name: packages + path: exe |