Add ghex #26
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test-oomph | |
on: | |
push: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
spack-install: | |
runs-on: ubuntu-latest | |
container: boeschf/ghex-org | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
# 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: | | |
. /opt/spack/share/spack/setup-env-clean.sh | |
spack repo add . | |
spack spec -I oomph | |
# need `--dirty` here for environment variables to propagate | |
spack install --dirty --test=root --verbose --show-log-on-error oomph |