-
Notifications
You must be signed in to change notification settings - Fork 12
49 lines (47 loc) · 1.27 KB
/
ci.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
name: Exawind-CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
Formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: DoozyX/[email protected]
with:
source: './app ./src'
exclude: '.'
extensions: 'H,h,cpp'
clangFormatVersion: 13
CPU:
needs: Formatting
runs-on: ubuntu-latest
container:
image: ecpe4s/exawind-snapshot
env:
SPACK_MANAGER: /spack-manager
E4S_MACHINE: true
steps:
- name: Cancel previous runs
uses: styfle/[email protected]
with:
access_token: ${{github.token}}
- name: Clone
uses: actions/checkout@v3
with:
submodules: true
- name: Tests
run: |
/bin/bash -c " \
source ${SPACK_MANAGER}/start.sh && \
quick-create -n ci -s exawind@master && \
spack cd -e && \
ln -s ${GITHUB_WORKSPACE} exawind && \
spack develop exawind@master && \
spack manager external --latest --blacklist gmake exawind
spack install && \
spack cd -b exawind && \
spack build-env exawind ctest -j $(nproc) --output-on-failure \
"