forked from stan-dev/cmdstan
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.45 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
name: Windows Rtools 3.5
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- uses: actions/setup-python@v2
with:
python-version: '2.x'
- name: Download & install RTools
run: |
Invoke-WebRequest -Uri https://cran.rstudio.com/bin/windows/Rtools/Rtools35.exe -OutFile ./R35.exe
Start-Process -FilePath ./R35.exe -ArgumentList /VERYSILENT -NoNewWindow -Wait
echo "C:/Rtools/bin;C:/Rtools/mingw_64/bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
shell: powershell
- name: Print toolchain versions and paths
run: |
g++ --version
mingw32-make --version
Get-Command g++ | Select-Object -ExpandProperty Definition
Get-Command mingw32-make | Select-Object -ExpandProperty Definition
shell: powershell
- name: Build Math libs & add to PATH
run: |
mingw32-make -f stan/lib/stan_math/make/standalone math-libs
echo "D:/a/cmdstan/cmdstan/stan/lib/stan_math/lib/tbb" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
shell: powershell
- name: Compile & run the example model
run: |
mingw32-make examples/bernoulli/bernoulli.exe
./examples/bernoulli/bernoulli.exe sample --data_file examples/bernoulli/bernoulli.data.json
shell: powershell