-
Notifications
You must be signed in to change notification settings - Fork 20
51 lines (48 loc) · 1.39 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
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:
strategy:
matrix:
maker: [cmake, spack]
backend: [BUILTIN, FFTW, MKL]
device: [cpu_intel]
include:
- maker: cmake
backend: ONEAPI
device: gpu_intel
- maker: cmake
backend: CUDA
device: gpu_nvidia
- maker: spack
backend: CUDA
device: gpu_nvidia
- maker: cmake
backend: ROCM
device: gpu_amd
fail-fast: false
runs-on: ${{matrix.device}}
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- 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@v4
if: always()
with:
name: heffte ${{matrix.maker}} ${{matrix.backend}} ${{matrix.device}}
path: |
*.txt
spack-build-*/CMakeFiles/*.log
build/CMakeFiles/*.log
.spack/test/*/*.txt