Skip to content

Commit

Permalink
update github action for torsten test
Browse files Browse the repository at this point in the history
  • Loading branch information
yizhang-yiz committed Oct 26, 2023
1 parent 9476dec commit 672083d
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/torsten_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,25 +76,31 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Set up R
uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-r@v2
with:
rtools-version: '43'
- name: Print g++ info
r-version: 4.1.3

- name: Set path for Rtools40
if: runner.os == 'Windows'
run: echo "C:/rtools40/usr/bin;C:/rtools40/mingw64/bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
- name: Install mingw32-make and check toolchain path
if: runner.os == 'Windows'
run: |
pacman -Syu mingw-w64-x86_64-make --noconfirm
g++ --version
Get-Command g++ | Select-Object -ExpandProperty Definition
- name: Print mingw32-make info
shell: powershell
run: |
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
run: |
Add-Content make\local "O=1`n"
mingw32-make -f make/standalone math-libs -j2
- name: Add TBB to PATH
shell: powershell
run: echo "D:\a\math\math\lib\tbb" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
run: echo "D:/a/math/math/lib/tbb" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
- name: Add Torsten to PATH
shell: powershell
run: echo "D:/a/math/math/stan/math/torsten" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
Expand Down

0 comments on commit 672083d

Please sign in to comment.