forked from open-license-manager/licensecc
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (50 loc) · 1.63 KB
/
windows.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Github_CI
on:
push:
jobs:
build-windows:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
build_type: ["Debug", "Release"]
os: ["windows-2019", "windows-2016"]
static: ["true","false"]
steps:
- uses: actions/checkout@v1
- name: Setup
shell: bash
run: env
- name: install boost boost-msvc-14.2
shell: bash
if: ${{ matrix.os == 'windows-2019' }}
run: |
choco install -y boost-msvc-14.2 --version 1.74.0
echo "BOOST_ROOT=C:/local/boost_1_74_0" >> $GITHUB_ENV
- name: install boost boost-msvc-14.1
shell: bash
if: ${{ matrix.os == 'windows-2016' }}
run: |
choco install -y boost-msvc-14.1 --version 1.74.0
echo "BOOST_ROOT=C:/local/boost_1_74_0" >> $GITHUB_ENV
- name: Compile
run: |
cd build
cmake .. -A x64 -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DSTATIC_RUNTIME:BOOL=${{matrix.static}} -DLCC_PROJECT_NAME:STRING=test -DCMAKE_INSTALL_PREFIX=C:/licensecc
cmake --build . --target install --config ${{ matrix.build_type }}
shell: bash
- name: Test
run: |
cd build
ctest -C ${{ matrix.build_type }}
shell: bash
env:
CTEST_OUTPUT_ON_FAILURE: 1
VIRTUAL_ENV: VM
- name: Inspector
run: C:/licensecc/bin/test/lccinspector.exe
shell: bash
- name: On Failure print logs
if: ${{ failure() }}
run: |
type $env:temp/open-license.log