| 1 |
# Run the multicoretests testsuite if PR is labelled with run-multicoretests |
| 2 |
name: Run multicoretests testsuite |
| 3 |
on: |
| 4 |
pull_request: |
| 5 |
types: [opened, synchronize, reopened, labeled, unlabeled] |
| 6 |
|
| 7 |
# Restrict the GITHUB_TOKEN |
| 8 |
permissions: {} |
| 9 |
|
| 10 |
# See build.yml |
| 11 |
concurrency: |
| 12 |
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name == 'pull_request' || github.sha }} |
| 13 |
cancel-in-progress: true |
| 14 |
|
| 15 |
jobs: |
| 16 |
multicoretests: |
| 17 |
if: contains(github.event.pull_request.labels.*.name, 'run-multicoretests') |
| 18 |
runs-on: 'ubuntu-latest' |
| 19 |
strategy: |
| 20 |
matrix: |
| 21 |
include: |
| 22 |
- profile: dev |
| 23 |
ocamlrunparam: b |
| 24 |
- profile: debug-runtime |
| 25 |
ocamlrunparam: b,s=4096 |
| 26 |
steps: |
| 27 |
- name: Checkout OCaml |
| 28 |
uses: actions/checkout@v5 |
| 29 |
with: |
| 30 |
path: ocaml |
| 31 |
persist-credentials: false |
| 32 |
- name: Configure, build and install OCaml |
| 33 |
run: | |
| 34 |
bash -xe ocaml/tools/ci/actions/multicoretests.sh ocaml |
| 35 |
- name: Checkout multicoretests |
| 36 |
uses: actions/checkout@v5 |
| 37 |
with: |
| 38 |
repository: ocaml-multicore/multicoretests |
| 39 |
ref: 0.11 |
| 40 |
path: multicoretests |
| 41 |
persist-credentials: false |
| 42 |
- name: Checkout QCheck |
| 43 |
uses: actions/checkout@v5 |
| 44 |
with: |
| 45 |
repository: c-cube/qcheck |
| 46 |
ref: v0.26 |
| 47 |
path: multicoretests/qcheck |
| 48 |
persist-credentials: false |
| 49 |
- name: Checkout dune |
| 50 |
uses: actions/checkout@v5 |
| 51 |
with: |
| 52 |
repository: ocaml/dune |
| 53 |
ref: 3.18.2 |
| 54 |
path: dune |
| 55 |
persist-credentials: false |
| 56 |
- name: Build and install dune |
| 57 |
run: | |
| 58 |
bash -xe ocaml/tools/ci/actions/multicoretests.sh dune |
| 59 |
- name: Show the configuration |
| 60 |
run: | |
| 61 |
bash ocaml/tools/ci/actions/multicoretests.sh show_config |
| 62 |
- name: Build the test suite |
| 63 |
env: |
| 64 |
DUNE_PROFILE: ${{ matrix.profile }} |
| 65 |
OCAMLRUNPARAM: ${{ matrix.ocamlrunparam }} |
| 66 |
run: | |
| 67 |
bash -xe ocaml/tools/ci/actions/multicoretests.sh build |
| 68 |
- name: Run the multicore test suite |
| 69 |
env: |
| 70 |
DUNE_PROFILE: ${{ matrix.profile }} |
| 71 |
OCAMLRUNPARAM: ${{ matrix.ocamlrunparam }} |
| 72 |
run: | |
| 73 |
bash -xe ocaml/tools/ci/actions/multicoretests.sh testsuite |