-
Notifications
You must be signed in to change notification settings - Fork 24
38 lines (35 loc) · 1022 Bytes
/
release-exe.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Win CD
# on:
# push:
# branches: [ main, develop ]
on:
release:
types: [published]
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build-windows:
name: Build Windows
runs-on: windows-latest
env:
VCPKG_DEFAULT_TRIPLET: x64-windows
VCPKG_INSTALLATION_ROOT: C:\vcpkg
VCPKG_FEATURE_FLAGS: manifests
steps:
- uses: actions/checkout@v2
- name: Build
run: |
vcpkg install
mkdir Release
cd Release
cmake .. -DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALLATION_ROOT\scripts\buildsystems\vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=x64-windows
cmake --build . --parallel 4 --config Release
- name: Package binary files
run: |
cd Release
7z a val3dity-win64.zip .\Release\*
- name: Upload binary files as artifact
uses: actions/upload-artifact@main
with:
name: val3dity-win64
path: Release/val3dity-win64.zip