Skip to content

Fix ignoring contingencies when the from bus number is greater than than to bus number #163

Fix ignoring contingencies when the from bus number is greater than than to bus number

Fix ignoring contingencies when the from bus number is greater than than to bus number #163

name: Spack CPU Builds
# Until we remove the need to clone submodules to build, this should on be in PRs
on: [pull_request]
jobs:
exago_spack_builds:
# 20.04 is a version shared by E4S cache and Spack binaries for x86_64
runs-on: ubuntu-20.04
# This seems redundant if we use a spack submodule?
container: spack/ubuntu-focal:latest
strategy:
matrix:
# Minimal Build(s)
# Need S3 mirror to have these builds speedup
spack_spec:
# See #39 - ~python~mpi causes issues
# - exago@develop~mpi~ipopt~hiop~python~raja
# See #44 - +mpi~python should fail if no python in system,
# but the runner happens to have one...
- exago@develop+mpi~ipopt+hiop~python~raja ^openmpi
# See #18 - +hiop~mpi causes issues
# - exago@develop~mpi~ipopt+hiop~python+raja
# See #16 - +python~mpi causes issues
# - exago@develop~mpi~ipopt+hiop+python~raja
- exago@develop+mpi~ipopt+hiop+python~raja ^openmpi
# See #40 - +hiop+raja~ipopt ^hiop~sparse is useful for edge cases
- exago@develop+mpi~ipopt+hiop~python+raja ^openmpi ^hiop+raja~sparse
name: Build ExaGO with Spack
steps:
- name: Checkout
uses: actions/checkout@v2
with:
# Once we move submodule deps into spack, we can do some more builds
# Also need to change build script to use spack from base image
submodules: true
- name: Build Environment
env:
SPACK_SPEC: ${{ matrix.spack_spec }}
run: |
ls && pwd
. ./tpl/spack/share/spack/setup-env.sh
spack debug report
spack env create -d ./spack-env
spack env activate ./spack-env
spack add $SPACK_SPEC target=x86_64
spack develop --path $(pwd) --no-clone exago@develop
spack concretize --reuse
git config --global --add safe.directory $(pwd)
spack --stacktrace install --fail-fast