-
Notifications
You must be signed in to change notification settings - Fork 107
85 lines (73 loc) · 1.94 KB
/
Copy pathci_windows.yml
File metadata and controls
85 lines (73 loc) · 1.94 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: CI Windows
on:
pull_request:
branches:
- '**'
workflow_dispatch:
inputs:
name:
description: "Manual trigger"
schedule:
- cron: '50 18 * * 6'
permissions:
pull-requests: write
jobs:
build-and-tests:
name: Build and Tests
runs-on: windows-2022
env:
TOOLSET: v142
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0
ref: ${{ github.ref }}
- name: Install CMake
uses: ssrobins/install-cmake@v1
with:
version: '3.31.8'
- name: Show tool versions
shell: pwsh
run: |
cmake --version
ctest --version
- name: Configure
shell: pwsh
run: |
mkdir build
cd build
cmake ..\ci\windows `
-G "Visual Studio 17 2022" `
-A x64 `
-T $env:TOOLSET `
-DCMAKE_BUILD_TYPE=Release
- name: Build
shell: pwsh
run: |
cd build
cmake --build . --config Release
- name: Run tests and export JUnit
shell: pwsh
run: |
ctest --test-dir build\microxrcedds_client-build `
-C Release `
--output-on-failure `
--no-tests=error `
--output-junit "$env:GITHUB_WORKSPACE\build\CTestResults.xml"
Get-Item "$env:GITHUB_WORKSPACE\build\CTestResults.xml" | Format-List -Property *
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: test-artifact
path: |
build/CTestResults.xml
if-no-files-found: error
- name: Publish unit test results (JUnit)
uses: EnricoMi/publish-unit-test-result-action/windows@v2
if: (!cancelled())
with:
files: build/CTestResults.xml
check_run: false
comment_mode: failures
comment_title: "Windows Tests Results"