-
-
Notifications
You must be signed in to change notification settings - Fork 191
60 lines (58 loc) · 1.76 KB
/
main.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
name: Windows RTools 3.5
on:
push:
branches: [ develop ]
paths-ignore:
- 'doygen/**'
- 'hooks/**'
- 'licenses/**'
- 'LICENSE.md'
- 'README.md'
- 'RELEASE-NOTES.txt'
jobs:
full:
name: Full unit tests
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '2.x'
- name: Download RTools
run: Invoke-WebRequest -Uri https://cran.rstudio.com/bin/windows/Rtools/Rtools35.exe -OutFile ./R35.exe
- name: Install RTools
shell: powershell
run: Start-Process -FilePath ./R35.exe -ArgumentList /VERYSILENT -NoNewWindow -Wait
- name: PATH Setup
shell: powershell
run: echo "::add-path::C:/Rtools/bin"
- name: PATH Setup
shell: powershell
run: echo "::add-path::C:/Rtools/mingw_64/bin"
- name: Print g++ version
shell: powershell
run: g++ --version
- name: Print g++ path
shell: powershell
run: Get-Command g++ | Select-Object -ExpandProperty Definition
- name: Print mingw32-make version
shell: powershell
run: mingw32-make --version
- name: Print mingw32-make path
shell: powershell
run: Get-Command mingw32-make | Select-Object -ExpandProperty Definition
- name: Build Math libs
shell: powershell
run: mingw32-make -f make/standalone math-libs
- name: Add TBB to PATH
shell: powershell
run: echo "::add-path::D:/a/math/math/lib/tbb"
- name: Run full unit tests
shell: powershell
run: python.exe runTests.py -j2 test/unit -f test/unit/
- name: Upload gtest_output xml
uses: actions/upload-artifact@v2
if: failure()
with:
name: gtest_outputs_xml
path: '**/*_test.xml'