26
26
strategy :
27
27
fail-fast : false
28
28
matrix :
29
- os : [windows-latest, ubuntu-24.04-arm]
29
+ os : [windows-11-arm, windows- latest, ubuntu-24.04-arm]
30
30
config : [
31
31
{ label: misc, tests: 'test/unit/*_test.cpp test/unit/math/*_test.cpp test/unit/math/memory' },
32
32
{ label: prim, tests: 'test/unit/math/prim' },
@@ -41,27 +41,23 @@ jobs:
41
41
with :
42
42
python-version : ' 3.x'
43
43
44
- - uses : r-lib/actions/setup-r@v2
44
+ - name : Download and install Rtools45
45
45
if : runner.os == 'Windows'
46
- with :
47
- r-version : ' release '
48
- rtools-version : ' 45 '
49
-
50
- - name : Set path for Rtools45
51
- if : runner.os == 'Windows'
52
- run : echo "C:/rtools45/usr/bin;C:/rtools45/x86_64-w64-mingw32.static.posix/bin " | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
46
+ run : |
47
+ $ARCH = if ('${{ matrix.os }}' -eq 'windows-11-arm') { 'aarch64' } else { 'x86_64' }
48
+ $RTOOLS = if ('${{ matrix.os }}' -eq 'windows-11-arm') { "rtools45-$ARCH" } else { 'rtools45' }
49
+ Invoke-WebRequest -Uri https://github.com/r-hub/rtools45/releases/download/latest/$RTOOLS.exe -OutFile "$RTOOLS.exe"
50
+ Start-Process -FilePath "$RTOOLS.exe" -ArgumentList "/install /norestart /verysilent /SUPPRESSMSGBOXES" -NoNewWindow -Wait
51
+ echo "C:/$RTOOLS/usr/bin;C:/$RTOOLS/$ARCH-w64-mingw32.static.posix/bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
52
+ echo "$(pwd)/lib/tbb " | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
53
53
54
54
- name : Build Math libs
55
55
shell : pwsh
56
56
run : |
57
57
Add-Content make\local "CPPFLAGS=-w -Wno-psabi -Wno-misleading-indentation`n"
58
+ Add-Content make\local "STAN_THREADS=true`n"
58
59
make -f make/standalone math-libs -j2
59
60
60
- - name : Add TBB to PATH
61
- if : runner.os == 'Windows'
62
- shell : pwsh
63
- run : echo "D:/a/math/math/lib/tbb" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
64
-
65
61
- name : Run ${{ matrix.config.label }} unit tests
66
62
shell : pwsh
67
63
run : |
80
76
strategy :
81
77
fail-fast : false
82
78
matrix :
83
- os : [windows-latest, ubuntu-24.04-arm]
79
+ os : [windows-11-arm, windows- latest, ubuntu-24.04-arm]
84
80
group : [1, 2, 3, 4, 5]
85
81
86
82
steps :
@@ -89,27 +85,23 @@ jobs:
89
85
with :
90
86
python-version : ' 3.x'
91
87
92
- - uses : r-lib/actions/setup-r@v2
88
+ - name : Download and install Rtools45
93
89
if : runner.os == 'Windows'
94
- with :
95
- r-version : ' release '
96
- rtools-version : ' 45 '
97
-
98
- - name : Set path for Rtools45
99
- if : runner.os == 'Windows'
100
- run : echo "C:/rtools45/usr/bin;C:/rtools45/x86_64-w64-mingw32.static.posix/bin " | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
90
+ run : |
91
+ $ARCH = if ('${{ matrix.os }}' -eq 'windows-11-arm') { 'aarch64' } else { 'x86_64' }
92
+ $RTOOLS = if ('${{ matrix.os }}' -eq 'windows-11-arm') { "rtools45-$ARCH" } else { 'rtools45' }
93
+ Invoke-WebRequest -Uri https://github.com/r-hub/rtools45/releases/download/latest/$RTOOLS.exe -OutFile "$RTOOLS.exe"
94
+ Start-Process -FilePath "$RTOOLS.exe" -ArgumentList "/install /norestart /verysilent /SUPPRESSMSGBOXES" -NoNewWindow -Wait
95
+ echo "C:/$RTOOLS/usr/bin;C:/$RTOOLS/$ARCH-w64-mingw32.static.posix/bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
96
+ echo "$(pwd)/lib/tbb " | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
101
97
102
98
- name : Build Math libs
103
99
shell : pwsh
104
100
run : |
105
101
Add-Content make\local "CPPFLAGS=-w -Wno-psabi -Wno-misleading-indentation`n"
102
+ Add-Content make\local "STAN_THREADS=true`n"
106
103
make -f make/standalone math-libs -j2
107
104
108
- - name : Add TBB to PATH
109
- if : runner.os == 'Windows'
110
- shell : pwsh
111
- run : echo "D:/a/math/math/lib/tbb" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
112
-
113
105
- name : Run mix/fun unit tests
114
106
shell : pwsh
115
107
run : |
0 commit comments