-
Notifications
You must be signed in to change notification settings - Fork 8
42 lines (40 loc) · 1.24 KB
/
spack.yml
File metadata and controls
42 lines (40 loc) · 1.24 KB
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
name: spack
on:
push:
pull_request:
branches:
- main
jobs:
test-spack:
runs-on: ubuntu-latest
container: boeschf/ghex-org
defaults:
run:
shell: bash
steps:
- name: install-ghex-org-packages
run: |
mkdir /repos
git clone https://github.com/ghex-org/spack-repos.git /repos
. /opt/spack/share/spack/setup-env-clean.sh
spack repo add /repos
- name: Checkout
uses: actions/checkout@v3
with:
path: oomph
# export OpenMPI environment variables: allow to run as root
- name: set env
run: |
echo "OMPI_ALLOW_RUN_AS_ROOT=1" >> $GITHUB_ENV
echo "OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1" >> $GITHUB_ENV
- name: build-and-test
run: |
cd oomph
. /opt/spack/share/spack/setup-env-clean.sh
spack spec -I --reuse oomph
# dev-build does not respect test dependencies - workaround
spack install --reuse googletest
spack load googletest
# need `--dirty` here for environment variables and googletest test dependency to propagate
spack dev-build --test=root --dirty --reuse oomph@develop
cat install-time-test-log.txt