-
Notifications
You must be signed in to change notification settings - Fork 15
68 lines (65 loc) · 2.05 KB
/
main.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
heffte_cpu:
strategy:
matrix:
maker: [cmake, spack]
backend: [BUILTIN, FFTW, MKL, ONEAPI]
exclude: # spack package doesn't support oneapi
- maker: spack
backend: ONEAPI
fail-fast: false
runs-on: cpu
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
- name: Build
run: .github/workflows/build-${{matrix.maker}}.sh build ${{matrix.backend}}
- name: Test
run: .github/workflows/build-${{matrix.maker}}.sh test ${{matrix.backend}}
- name: SmokeTest
run: .github/workflows/build-${{matrix.maker}}.sh smoketest ${{matrix.backend}}
- uses: actions/upload-artifact@v3
if: always()
with:
name: heffte ${{matrix.maker}} ${{matrix.device}}
path: |
*.txt
spack-build-*/CMakeFiles/*.log
build/CMakeFiles/*.log
.spack/test/*/*.txt
heffte_gpu:
strategy:
matrix:
maker: [cmake, spack]
device: [gpu_nvidia, gpu_intel]
exclude: # spack package doesn't support gpu_intel
- maker: spack
device: gpu_intel
fail-fast: false
runs-on: ${{matrix.device}}
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
- name: Build
run: .github/workflows/build-${{matrix.maker}}.sh build ${{matrix.device}}
- name: Test
run: .github/workflows/build-${{matrix.maker}}.sh test ${{matrix.device}}
- name: SmokeTest
run: .github/workflows/build-${{matrix.maker}}.sh smoketest ${{matrix.device}}
- uses: actions/upload-artifact@v3
if: always()
with:
name: heffte ${{matrix.maker}} ${{matrix.device}}
path: |
*.txt
spack-build-*/CMakeFiles/*.log
build/CMakeFiles/*.log
.spack/test/*/*.txt