-
Notifications
You must be signed in to change notification settings - Fork 112
37 lines (34 loc) · 1.22 KB
/
exe_build.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
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master, development ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Windows-build:
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 -DCMAKE_INSTALL_PREFIX=C:\Software -DCMAKE_PREFIX_PATH=Release\vcpkg_installed\x64-windows\share\lastools
cmake --build . --parallel 4 --config Release
- name: Package binary files
run: |
cd Release
7z a 3dfier-win64.zip .\Release\*
- name: Upload binary files as artifact
uses: actions/upload-artifact@master
with:
name: 3dfier-win64
path: Release/3dfier-win64.zip