-
Notifications
You must be signed in to change notification settings - Fork 5
91 lines (75 loc) · 2.52 KB
/
ci.yml
File metadata and controls
91 lines (75 loc) · 2.52 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
86
87
88
89
90
91
name: CI
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main
workflow_dispatch:
jobs:
linux-build-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build and run tests
run: make test
- name: Upload Linux test report
uses: actions/upload-artifact@v4
with:
name: linux-test-report
path: build/test/reports/sbet-test-linux-report.xml
- name: Upload Linux binaries
uses: actions/upload-artifact@v4
with:
name: linux-binaries
path: |
build/bin/sbet-decoder
build/bin/accuracy-decoder
windows-build-test:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build and run tests
shell: cmd
run: |
for /f "usebackq tokens=*" %%i in (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -latest -property installationPath`) do set VS_INSTALL=%%i
call "%VS_INSTALL%\Common7\Tools\VsDevCmd.bat" -arch=x64 -host_arch=x64
if not exist build\bin mkdir build\bin
if not exist build\test\reports mkdir build\test\reports
cl /nologo /W4 /EHsc /std:c++14 /Fe:build\bin\sbet-decoder.exe src\sbet-decoder.cpp src\SbetProcessor.cpp
cl /nologo /W4 /EHsc /std:c++14 /Fe:build\bin\accuracy-decoder.exe src\accuracy-decoder.cpp
cl /nologo /W4 /EHsc /std:c++14 /DCATCH_CONFIG_NO_POSIX_SIGNALS /Fe:build\test\tests.exe test\CatchMain.cpp
build\test\tests.exe -r junit -o build\test\reports\sbet-test-windows-report.xml
- name: Upload Windows test report
uses: actions/upload-artifact@v4
with:
name: windows-test-report
path: build/test/reports/sbet-test-windows-report.xml
- name: Upload Windows binaries
uses: actions/upload-artifact@v4
with:
name: windows-binaries
path: |
build/bin/sbet-decoder.exe
build/bin/accuracy-decoder.exe
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Doxygen
run: |
sudo apt-get update
sudo apt-get install -y doxygen graphviz
- name: Generate docs
run: make doc
- name: Upload Doxygen output
uses: actions/upload-artifact@v4
with:
name: doxygen-output
path: build/doxygen