-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (38 loc) · 1016 Bytes
/
exercises.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# __________________________________________________
#
# Workflow to compile and run all exercises
# __________________________________________________
name: Test exercises
on:
pull_request:
branches:
- main
paths:
- 'exercises/**'
jobs:
build_test_exercises:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v4
- name: Prepare all exercices and solutions with the OpenMP backend
run: |
cmake \
-B build \
-DCMAKE_BUILD_TYPE=Release \
-DKokkos_ENABLE_OPENMP=ON \
exercises
- name: Build all exercises and solutions
run: |
cmake \
--build build \
--parallel $(($(nproc) * 2 + 1))
- name: Test all solutions
env:
OMP_PROC_BIND: spread
OMP_PLACES: threads
OMP_NUM_THREADS: 2
run: |
ctest \
--test-dir build \
--output-on-failure