-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (49 loc) · 1.56 KB
/
master-test-workflow.yml
File metadata and controls
59 lines (49 loc) · 1.56 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
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/hicr/buildenv
defaults:
run:
shell: bash
jobs:
# Build HiCR and run tests and the remote image
compile-and-test:
runs-on: ${{ inputs.os }}
container:
image: ghcr.io/algebraic-programming/hicr/buildenv:latest
options: --user hicr
credentials:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup
run: source /home/hicr/.bashrc && meson setup build -Db_coverage=true -Dengines=mpi,cloudr,local,lpf -DbuildTests=true -DbuildExamples=true -DcompileWarningsAsErrors=true
- name: Compile
run: source /home/hicr/.bashrc && meson compile -C build
- name: Running tests and creating coverage report
shell: bash
run: |
echo "Running Tests..."
source /home/hicr/.bashrc
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/