-
-
Notifications
You must be signed in to change notification settings - Fork 188
78 lines (65 loc) · 1.76 KB
/
header_checks.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
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
name: Header checks
on:
pull_request:
branches: [ develop, master ]
push:
branches: [ develop, master ]
paths-ignore:
- 'doygen/**'
- 'hooks/**'
- 'licenses/**'
- 'LICENSE.md'
- 'README.md'
- 'RELEASE-NOTES.txt'
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
windows:
name: Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Print g++/mingw32-make version and path
run: |
g++ --version
Get-Command g++ | Select-Object -ExpandProperty Definition
mingw32-make --version
Get-Command mingw32-make | Select-Object -ExpandProperty Definition
shell: powershell
# - name: Build Math libs
# shell: powershell
# run: mingw32-make -f make/standalone math-libs -j2
- name: Run header tests
shell: powershell
run: |
cmake -S . -B build -DCMAKE_BUILD_TYPE=RELEASE -DSTAN_TEST_HEADERS=ON
cd build
make -j2 test-headers
opencl:
name: OpenCL
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run header tests
run: |
cmake -S . -B build -DCMAKE_BUILD_TYPE=RELEASE -DSTAN_TEST_HEADERS=ON
cd build
make -j2 test-headers
no_range_checks:
name: NoRange
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run header tests
run: |
cmake -S . -B build -DCMAKE_BUILD_TYPE=RELEASE -DSTAN_NO_RANGE_CHECKS=ON
cd build
make -j4 test_unit_math_prim_err_subtests
cd test
ctest -R "unit_math_prim_err"