-
Notifications
You must be signed in to change notification settings - Fork 15
50 lines (43 loc) · 1.24 KB
/
psc-cpu.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
name: PSC CI
on:
push:
branches: [ main, 'pr/*' ]
pull_request:
branches: [ main ]
jobs:
tests-cpu:
runs-on: ubuntu-latest
container: ghcr.io/psc-code/psc-cpp-ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: cmake
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo -G Ninja
- name: build
run: cmake --build build
- name: test
run: cmake --build build -t test
tests-spack-cpu:
runs-on: ubuntu-latest
container: ghcr.io/psc-code/psc-spack-ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: cmake
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo -G Ninja
- name: build
run: cmake --build build
- name: test
run: cmake --build build -t test
build-spack-cuda:
runs-on: ubuntu-latest
container: ghcr.io/psc-code/psc-spack-cuda-ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: cmake
run: |
#. /opt/spack/share/spack/setup-env.sh
#spack repo list
#spack env activate /root/psc-env
export CMAKE_PREFIX_PATH=/root/psc-env/.spack-env/view
cmake -S . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo -DUSE_CUDA=ON -G Ninja
- name: build
run: cmake --build build