Skip to content

Commit 70a7b17

Browse files
committed
Add PATH setting to RTools block
1 parent d1f7df5 commit 70a7b17

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

.github/workflows/main.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ jobs:
4949
Invoke-WebRequest -Uri https://github.com/r-hub/rtools45/releases/download/latest/$RTOOLS.exe -OutFile "$RTOOLS.exe"
5050
Start-Process -FilePath "$RTOOLS.exe" -ArgumentList "/install /norestart /verysilent /SUPPRESSMSGBOXES" -NoNewWindow -Wait
5151
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
5253
5354
- name: Build Math libs
5455
shell: pwsh
@@ -57,11 +58,6 @@ jobs:
5758
Add-Content make\local "STAN_THREADS=true`n"
5859
make -f make/standalone math-libs -j2
5960
60-
- name: Add TBB to PATH
61-
if: runner.os == 'Windows'
62-
shell: pwsh
63-
run: echo "$(pwd)/lib/tbb" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
64-
6561
- name: Run ${{ matrix.config.label }} unit tests
6662
shell: pwsh
6763
run: |
@@ -97,6 +93,7 @@ jobs:
9793
Invoke-WebRequest -Uri https://github.com/r-hub/rtools45/releases/download/latest/$RTOOLS.exe -OutFile "$RTOOLS.exe"
9894
Start-Process -FilePath "$RTOOLS.exe" -ArgumentList "/install /norestart /verysilent /SUPPRESSMSGBOXES" -NoNewWindow -Wait
9995
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
10097
10198
- name: Build Math libs
10299
shell: pwsh
@@ -105,11 +102,6 @@ jobs:
105102
Add-Content make\local "STAN_THREADS=true`n"
106103
make -f make/standalone math-libs -j2
107104
108-
- name: Add TBB to PATH
109-
if: runner.os == 'Windows'
110-
shell: pwsh
111-
run: echo "C:/a/math/math/lib/tbb" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
112-
113105
- name: Run mix/fun unit tests
114106
shell: pwsh
115107
run: |

0 commit comments

Comments
 (0)