-
Notifications
You must be signed in to change notification settings - Fork 4
63 lines (55 loc) · 1.59 KB
/
ci_win.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
54
55
56
57
58
59
60
61
62
63
name: CI on Windows
on:
push:
branches:
# Push events to branches matching refs/heads/master
- 'master'
pull_request:
# Enables a manual trigger, may run on any branch
workflow_dispatch:
concurrency:
group: windows-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
TZ: Europe/Berlin
jobs:
build:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
timeout-minutes: 180
strategy:
fail-fast: false
matrix:
include:
- name: "Visual Studio 16 2019"
os: windows-2019
toolset: '14.29'
msvc_ver: '16'
build_type: Release
cxx_flags: "/std:c++latest /EHsc"
steps:
- name: Setup MSVC
uses: ilammy/msvc-dev-cmd@v1
with:
toolset: ${{ matrix.toolset }}
- name: Checkout TDL
uses: actions/checkout@v2
with:
path: tdl
fetch-depth: 2
- name: Configure tests
run: |
New-Item -Name "tdl-build" -ItemType "directory" -Force
ls
cd tdl-build
cmake ../tdl -G"${{ matrix.name }}" `
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} `
-DCMAKE_CXX_FLAGS="${{ matrix.cxx_flags }}"
- name: Build tests
run: |
cd tdl-build
cmake --build . --config "${{ matrix.build_type }}" --parallel 2 ` -- /p:TrackFileAccess=false
- name: Run tests
run: |
cd tdl-build
ctest . -j2 -C "${{ matrix.build_type }}" --output-on-failure --timeout 240