Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 4 additions & 27 deletions .github/workflows/header_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,16 @@ on:
permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
windows:
permissions:
actions: write # for n1hility/cancel-previous-runs to create & stop workflow runs
contents: read # for actions/checkout to fetch code
name: Windows
runs-on: windows-latest

steps:
- uses: n1hility/cancel-previous-runs@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
workflow: c-cpp.yml
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master' && github.ref != 'refs/heads/develop'"

- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
Expand All @@ -53,39 +48,21 @@ jobs:
run: make -j2 test-headers

opencl:
permissions:
actions: write # for n1hility/cancel-previous-runs to create & stop workflow runs
contents: read # for actions/checkout to fetch code
name: OpenCL
runs-on: ubuntu-latest

steps:
- uses: n1hility/cancel-previous-runs@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
workflow: c-cpp.yml
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master' && github.ref != 'refs/heads/develop'"

- uses: actions/checkout@v3

- name: Run header tests
run: |
echo "STAN_OPENCL=true" > make/local
make -j2 test-headers
no_range_checks:
permissions:
actions: write # for n1hility/cancel-previous-runs to create & stop workflow runs
contents: read # for actions/checkout to fetch code
name: NoRange
runs-on: ubuntu-latest

steps:
- uses: n1hility/cancel-previous-runs@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
workflow: c-cpp.yml
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master' && github.ref != 'refs/heads/develop'"

- uses: actions/checkout@v3

- name: Run header tests
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,16 @@ on:
- 'RELEASE-NOTES.txt'
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
prim-rev:
permissions:
actions: write # for n1hility/cancel-previous-runs to create & stop workflow runs
contents: read # for actions/checkout to fetch code
name: prim and rev tests
runs-on: windows-latest

steps:
- uses: n1hility/cancel-previous-runs@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master' && github.ref != 'refs/heads/develop'"

- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
Expand Down Expand Up @@ -73,6 +68,7 @@ jobs:
with:
name: gtest_outputs_xml
path: '**/*_test.xml'

fwd-non-fun-mix:
name: fwd tests and non-fun mix tests
runs-on: windows-latest
Expand Down Expand Up @@ -126,6 +122,7 @@ jobs:
with:
name: gtest_outputs_xml
path: '**/*_test.xml'

mix-fun-1:
name: mix/fun tests 1
runs-on: windows-latest
Expand Down Expand Up @@ -174,6 +171,7 @@ jobs:
with:
name: gtest_outputs_xml
path: '**/*_test.xml'

mix-fun-2:
name: mix/fun tests 2
runs-on: windows-latest
Expand Down