-
-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
81 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
name: Windows Rtools40 | ||
|
||
on: | ||
pull_request: | ||
branches: [ develop, master ] | ||
push: | ||
branches: [ tbb-sh-check ] | ||
paths-ignore: | ||
- 'doygen/**' | ||
- 'hooks/**' | ||
- 'licenses/**' | ||
- 'LICENSE.md' | ||
- 'README.md' | ||
- 'RELEASE-NOTES.txt' | ||
permissions: | ||
contents: read | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
rtools-build-check: | ||
runs-on: windows-latest | ||
name: R ${{ matrix.config.r }} with Rtools ${{ matrix.config.rtools }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
config: | ||
- {os: windows-latest, r: '4.3.2', rtools: '43', path: 'C:/rtools43/x86_64-w64-mingw32.static.posix/bin;C:/rtools43/usr/bin'} | ||
- {os: windows-latest, r: '4.2.3', rtools: '42', path: 'C:/rtools42/x86_64-w64-mingw32.static.posix/bin;C:/rtools42/usr/bin'} | ||
- {os: windows-latest, r: '4.1.3', rtools: '40', path: 'C:/rtools40/mingw64/bin;C:/rtools40/usr/bin'} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.x' | ||
- uses: r-lib/actions/setup-r@v2 | ||
with: | ||
r-version: ${{ matrix.config.r }} | ||
rtools-version: ${{ matrix.config.rtools }} | ||
|
||
- name: Set path for Rtools${{ matrix.config.rtools }} | ||
run: echo "${{ matrix.config.path }}" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8 | ||
|
||
- name: Build Math libs | ||
shell: powershell | ||
run: | | ||
Add-Content make\local "O=1`n" | ||
Add-Content make\local "STAN_THREADS=true`n" | ||
make -f make/standalone math-libs -j2 | ||
- name: Add TBB to PATH | ||
shell: powershell | ||
run: echo "D:/a/math/math/lib/tbb" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8 | ||
|
||
- name: Run prim and rev unit tests | ||
shell: powershell | ||
run: | | ||
python.exe runTests.py -j2 test/unit/*_test.cpp | ||
python.exe runTests.py -j2 test/unit/math/*_test.cpp | ||
python.exe runTests.py -j2 test/unit/math/prim | ||
python.exe runTests.py -j2 test/unit/math/rev | ||
python.exe runTests.py -j2 test/unit/math/memory | ||
- name: Upload gtest_output xml | ||
uses: actions/upload-artifact@v4 | ||
if: failure() | ||
with: | ||
name: gtest_outputs_xml | ||
path: '**/*_test.xml' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters