-
Notifications
You must be signed in to change notification settings - Fork 36
74 lines (73 loc) · 2.6 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: CI
on:
workflow_dispatch: {}
pull_request:
types: [opened, labeled, synchronize]
branches:
- master
jobs:
docker-image:
uses: ./.github/workflows/docker.yml
linux:
runs-on: ubuntu-latest
needs: [docker-image]
container:
image: ghcr.io/llnl/librom/librom_env:latest
options: --user 1001 --privileged
volumes:
- /mnt:/mnt
steps:
- name: Cancel previous runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Set Swap Space
uses: pierotofy/set-swap-space@master
with:
swap-size-gb: 10
- name: Check out libROM
uses: actions/checkout@v3
- name: Build libROM
run: |
mkdir ${GITHUB_WORKSPACE}/build
cd ${GITHUB_WORKSPACE}/build
cmake .. -DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN_FILE} -DCMAKE_BUILD_TYPE=Debug -DUSE_MFEM=${USE_MFEM} -DMFEM_USE_GSLIB=${MFEM_USE_GSLIB}
make
cmake .. -DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN_FILE} -DCMAKE_BUILD_TYPE=Optimized -DUSE_MFEM=${USE_MFEM} -DMFEM_USE_GSLIB=${MFEM_USE_GSLIB}
make
- name: Build baseline libROM
if: ${{ github.event.label.name == 'LGTM' || contains(github.event.pull_request.labels.*.name, 'LGTM') }}
run: |
cd ${GITHUB_WORKSPACE}/dependencies
git clone https://github.com/LLNL/libROM.git
cd libROM
mkdir build
cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN_FILE} -DCMAKE_BUILD_TYPE=Debug -DUSE_MFEM=${USE_MFEM} -DMFEM_USE_GSLIB=${MFEM_USE_GSLIB}
make
cmake .. -DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN_FILE} -DCMAKE_BUILD_TYPE=Optimized -DUSE_MFEM=${USE_MFEM} -DMFEM_USE_GSLIB=${MFEM_USE_GSLIB}
make
- uses: ./.github/workflows/run_tests
# mac:
# runs-on: macos-latest
# steps:
# - name: Install Mac dependencies
# run: |
# brew install open-mpi
# brew install openblas
# brew install lapack
# brew install scalapack
# brew install hdf5
# - name: Check out libROM
# uses: actions/checkout@v2
# - uses: ./.github/workflows/checkout_repo
# - name: Build libROM
# run: |
# export FC=/usr/local/bin/gfortran-10
# mkdir ${GITHUB_WORKSPACE}/build
# cd ${GITHUB_WORKSPACE}/build
# cmake -DCMAKE_BUILD_TYPE=Debug ..
# make
# cmake -DCMAKE_BUILD_TYPE=Optimized ..
# make
# - uses: ./.github/workflows/run_tests