aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/insitu.yml
blob: 9b81184b99832ee7c1a1f1c62f35714cd6c7904c (plain) (blame)
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
69
70
71
name: 🐧 In Situ Vis

on: [push, pull_request]

concurrency:
  group: ${{ github.ref }}-${{ github.head_ref }}-insituvis
  cancel-in-progress: true

jobs:
  sensei:
    name: SENSEI
    runs-on: ubuntu-20.04
    if: github.event.pull_request.draft == false
    env:
      CXX: clang++
      CC: clang
      CXXFLAGS: "-Werror -Wshadow -Woverloaded-virtual -Wunreachable-code -Wno-error=pass-failed"
      CMAKE_GENERATOR: Ninja
      CMAKE_PREFIX_PATH: /root/install/sensei/develop/lib/cmake
    container:
      image: ryankrattiger/sensei:fedora33-vtk-mpi-20210616
    steps:
    - uses: actions/checkout@v2
    - name: Configure
      run: |
        cmake -S . -B build     \
          -DWarpX_SENSEI=ON     \
          -DWarpX_COMPUTE=NOACC \
          -DCMAKE_CXX_STANDARD=14
    - name: Build
      run: |
        cmake --build build -j 2

  ascent:
    name: Ascent
    runs-on: ubuntu-20.04
    if: github.event.pull_request.draft == false
    env:
      CXX: g++
      CC: gcc
      CMAKE_PREFIX_PATH: /ascent/install-debug/lib/cmake/
    container:
      image: alpinedav/ascent:ascent-ubuntu-18_2021-11-02-sha458045
    steps:
    - uses: actions/checkout@v2
    - name: Configure
      run: |
        . /ascent_docker_setup_env.sh
        cmake -S . -B build   \
            -DWarpX_ASCENT=ON \
            -DWarpX_COMPUTE=NOACC
    - name: Build
      run: |
        . /ascent_docker_setup_env.sh
        cmake --build build -j 2
    - name: Test
      run: |
        cp Examples/Physics_applications/laser_acceleration/inputs_3d .
        cp Examples/Physics_applications/laser_acceleration/3d_ascent_actions.yaml ascent_actions.yaml
        mpiexec -n 2 ./build/bin/warpx \
          inputs_3d                    \
            max_step = 40              \
            diag1.intervals = 30:40:10 \
            diag1.format = ascent
    - uses: actions/upload-artifact@v2
      with:
        name: ascent-test-artifacts
        path: |
          *.png
          conduit_*
        if-no-files-found: error