-
Notifications
You must be signed in to change notification settings - Fork 20
69 lines (61 loc) · 2.05 KB
/
continuous-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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Continuous Windows
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
windows:
name: ${{matrix.family}}-${{matrix.compiler}}-${{matrix.buildtype}}
runs-on: ${{matrix.os}}-latest
strategy:
fail-fast: false
matrix:
name: [windows-msvc, windows-msvc-clang-cl]
buildtype: [debug, release]
include:
- name: windows-msvc
os: windows
family: windows
compiler: msvc
experimental: false
- name: windows-msvc-clang-cl
os: windows
family: windows
compiler: msvc-clang-cl
experimental: true
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: ilammy/msvc-dev-cmd@v1
- name: Get latest CMake
uses: lukka/get-cmake@latest
- name: Run vcpkg
uses: lukka/run-vcpkg@v10
with:
appendedCacheKey: ${{matrix.name}}${{matrix.buildtype}}
- name: Setup test data
run: |
./build/scripts/github.setup.${{matrix.family}}.ps1
- name: Run CTest workflow
run: |
$env:DOGEN_BUILD_PROVIDER="github"
$env:DOGEN_BUILD_COMMIT="$env:GITHUB_SHA"
$env:DOGEN_BUILD_NUMBER="$env:GITHUB_RUN_NUMBER"
$env:DOGEN_BUILD_TIMESTAMP=Get-Date -format "yyyy/MM/dd HH:mm:ss"
$preset="${{matrix.family}}-${{matrix.compiler}}-${{matrix.buildtype}}"
$model = "Continuous"
if ("${{matrix.experimental}}" -eq "true")
{
$model = "Experimental"
}
$cmake_args="model=$model,preset=$preset,configuration=${{matrix.buildtype}}"
ctest -VV --preset $preset --script "CTest.cmake,$cmake_args"
- name: Upload artifact
uses: actions/upload-artifact@v1
with:
name: ${{matrix.family}}-${{matrix.compiler}}-${{matrix.buildtype}}
path: ./build/output/${{matrix.family}}-${{matrix.compiler}}-${{matrix.buildtype}}/stage/pkg/DOGEN-1.0.31-Windows-AMD64.msi