-
Notifications
You must be signed in to change notification settings - Fork 15
51 lines (44 loc) · 1.35 KB
/
ci-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
name: Windows build
on:
pull_request:
branches:
- "*"
# push:
# branches:
# - "*"
# paths:
# # This action only runs on push when C++ files are changed
# - "**.cpp"
# - "**.h"
# - "**.cmake"
# - "**Lists.txt"
# - "**-windows.yml"
workflow_dispatch:
jobs:
build:
name: ${{ matrix.config.name }} (${{ matrix.buildtype }})
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
buildtype: [Release, Debug]
config:
- { name: "Windows", os: windows-latest }
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Configure CMake
run: |
cmake -B ${{github.workspace}}\build -DCMAKE_BUILD_TYPE=${{ matrix.buildtype }} -DCMAKE_POLICY_DEFAULT_CMP0135=NEW
- name: Build
run: cmake --build ${{github.workspace}}\build --parallel --config ${{ matrix.buildtype }} --verbose
- name: Checking that HDRView runs
run: |
"${{github.workspace}}\build\${{ matrix.buildtype }}\HDRView.exe --help"
- name: Archive build artifacts
uses: actions/upload-artifact@v3
with:
name: build-artifacts-${{ matrix.config.os }}-${{ matrix.buildtype }}
path: |
"${{github.workspace}}\build\${{ matrix.buildtype }}\HDRView.exe"