Skip to content

Adding CI scripts

Adding CI scripts #120

Workflow file for this run

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: slurm:cpu
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}}
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: slurm:${{matrix.device}}
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- 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@v4
if: always()
with:
name: heffte ${{matrix.maker}} ${{matrix.device}}
path: |
*.txt
spack-build-*/CMakeFiles/*.log
build/CMakeFiles/*.log
.spack/test/*/*.txt