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>
This commit is contained in:
parent
9cdff50e18
commit
4b0e800773
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue