-
Notifications
You must be signed in to change notification settings - Fork 7
66 lines (58 loc) · 2 KB
/
Copy pathci.yml
File metadata and controls
66 lines (58 loc) · 2 KB
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
name: CI
# Controls when the workflow will run
on:
push:
branches:
- master
paths-ignore:
- "**.md"
pull_request:
paths-ignore:
- "**.md"
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 3
matrix:
os: [windows-latest]
cmake-version: [4.2.0-rc1]
include:
- os: windows-latest
cmake-generator: "Visual Studio 17 2022"
expected-msvc-arch: 64
expected-msvc-version: 1949 # Visual Studio 17 2022
expected-batch-filename: "vcvars64.bat"
expected-wrapper-filename: "vcvars64_wrapper.bat"
expected-platform-toolset-version: "14.3"
name: Tests on ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
path: src
- name: Setup cmake
uses: lukka/get-cmake@4169813123dd72674c1697fc8f2554818db4c92b # v4.2.0-rc1
with:
cmakeVersion: ${{ matrix.cmake-version }}
- name: Configure
if: matrix.os == 'windows-latest'
shell: powershell
run: |
cmake `
-G"${{ matrix.cmake-generator }}" `
-DEXPECTED_MSVC_ARCH:STRING=${{ matrix.expected-msvc-arch }} `
-DEXPECTED_MSVC_VERSION:STRING=${{ matrix.expected-msvc-version }} `
-DEXPECTED_BATCH_FILENAME:STRING=${{ matrix.expected-batch-filename }} `
-DEXPECTED_WRAPPER_FILENAME:STRING=${{ matrix.expected-wrapper-filename }} `
-DEXPECTED_PLATFORM_TOOLSET_VERSION:STRING=${{ matrix.expected-platform-toolset-version }} `
-S src/tests `
-B build
- name: Tests
run: |
ctest --test-dir build -C Release --output-on-failure --output-junit test-results.xml
- name: Publish Test Report
uses: mikepenz/action-junit-report@v5.6.2
if: success() || failure() # always run even if the previous step fails
with:
report_paths: 'build/test-results.xml'