blob: b0039ede70fdf0c415851d1bdc3df19a1a09c109 (
plain)
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: Unit tests Windows
on:
push:
branches:
- develop
- master
pull_request:
schedule:
- cron: '0 0 1 * *'
jobs:
WinVS2019:
name: Windows VS2019
# runs-on: windows-2019
runs-on: windows-2016
strategy:
fail-fast: false
matrix:
configuration: [error_code, status_code]
env:
NAME: WinVS2019-${{ matrix.configuration }}
steps:
- uses: actions/checkout@v2
- name: CMake tests Windows
shell: bash
run: |
if [ "${{ matrix.configuration }}" = "status_code" ]; then
export CMAKE_CONFIGURE_OPTIONS="-DLLFIO_USE_EXPERIMENTAL_SG14_STATUS_CODE=ON"
fi
ctest -S .ci.cmake -VV --timeout 900 "-DCTEST_CONFIGURE_OPTIONS=$CMAKE_CONFIGURE_OPTIONS;CTEST_CMAKE_GENERATOR=\"Visual Studio 15 2019 Win64\"" -DCTEST_SITE=$NAME
- name: Upload Prebuilt Binaries
uses: actions/upload-artifact@v2
with:
name: Windows VS2019 ${{ matrix.configuration }} prebuilt binaries
path: llfio-v2.0-binaries-win64.zip
- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v2
with:
name: Windows VS2019 ${{ matrix.configuration }} test results
path: prebuilt/merged_junit_results.xml
publish-test-results:
name: "Publish Unit Tests Results"
needs: [WinVS2019]
runs-on: ubuntu-latest
if: success() || failure()
steps:
- name: Download Artifacts
uses: actions/download-artifact@v2
with:
path: artifacts
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1.3
with:
check_name: Unit Test Results
github_token: ${{ secrets.GITHUB_TOKEN }}
files: '**/merged_junit_results.xml'
|