-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (54 loc) · 2.09 KB
/
master-test-workflow.yml
File metadata and controls
64 lines (54 loc) · 2.09 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Merge into master - Run Tests Workflow
# if statements modified to avoid: https://stackoverflow.com/questions/69354003/github-action-job-fire-when-previous-job-skipped
on:
workflow_call:
inputs:
os:
required: true
type: string
arch:
required: true
type: string
permissions:
contents: read
env:
REGISTRY: ghcr.io
DOCKERIMAGE: ghcr.io/algebraic-programming/taskr/buildenv
defaults:
run:
shell: bash
jobs:
# Build TaskR and run tests and the remote image
compile-and-test:
runs-on: ${{ inputs.os }}
container:
image: ghcr.io/algebraic-programming/taskr/buildenv:latest
options: --user hicr
credentials:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Dry-run compilation
shell: bash
run: source /home/hicr/.bashrc && meson setup --wipe build -Dbuildtype=debug -Db_coverage=true -DdistributedEngines=mpi,lpf,none -DbuildTests=true -DbuildExamples=true -DcompileWarningsAsErrors=true -DexecutionStateType=nosv,boost -DprocessingUnitType=nosv,pthreads -DbuildPyTaskR=true -DbuildInstrumentation=false && meson compile -C build
- name: Running tests and creating coverage report
shell: bash
env:
LD_PRELOAD: /usr/local/lib/libnosv.so
run: |
echo "Running Tests..."
source /home/hicr/.bashrc
meson setup build -Dbuildtype=debug -Db_coverage=true -DdistributedEngines=mpi,none -DbuildTests=true -DbuildExamples=true -DcompileWarningsAsErrors=true -DexecutionStateType=nosv,boost -DprocessingUnitType=nosv,pthreads -DbuildPyTaskR=true -DbuildInstrumentation=false
meson compile -C build
meson test -C build
echo "Creating coverage report..."
ninja -C build coverage
- uses: actions/upload-artifact@v4
if: always()
with:
name: meson-logs-${{ inputs.arch }}
path: build/meson-logs/