@@ -102,10 +102,13 @@ jobs:
102
102
- hiop@develop+mpi~raja~shared~kron~sparse ^openmpi
103
103
- hiop@develop~mpi~raja~shared~kron~sparse
104
104
- hiop@develop~mpi+raja~shared~kron~sparse
105
-
106
- # We will need coinhsl for this, but what are the rules for using
107
- # a coinhsl tarball?
108
- # - hiop@develop~mpi~raja~shared~kron+sparse
105
+ # We will need coinhsl for this, but what are the rules for using
106
+ # a coinhsl tarball?
107
+ # - hiop@develop~mpi~raja~shared~kron+sparse
108
+ blas_provider :
109
+ - openblas
110
+ compiler :
111
+ - gcc
109
112
110
113
name : Build HiOp with Spack
111
114
@@ -130,11 +133,10 @@ jobs:
130
133
spack:
131
134
specs:
132
135
- ${{ matrix.spack_spec }} target=x86_64_v2
133
- - openblas
134
- - libevent~openssl
136
+ - ${{ matrix.blas_provider }} target=x86_64_v2
135
137
concretizer:
136
- reuse: true
137
- unify: true
138
+ reuse: true # We want to re-use existing binaries in spack / GHCR mirror
139
+ unify: true # We want to build the openblas and hiop version together!
138
140
config:
139
141
source_cache: $SPACK_CACHE/source_cache
140
142
misc_cache: $SPACK_CACHE/misc_cache
@@ -144,13 +146,18 @@ jobs:
144
146
padded_length: False
145
147
mirrors:
146
148
local-buildcache: oci://${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
149
+ # If the spack buildcache fails for any readon, feel free to disable
147
150
spack: https://binaries.spack.io/develop
148
151
packages:
149
152
all:
150
- require: "%gcc "
153
+ require: "%${{ matrix.compiler }} "
151
154
# https://spack.readthedocs.io/en/latest/packages_yaml.html#setting-requirements-on-virtual-specs
152
155
cmake:
156
+ # We don't need CMake GUI features for minimal container builds
153
157
require: "~qtgui~ncurses"
158
+ libevent:
159
+ # Building OpenSSL was causing errors
160
+ require: "~openssl"
154
161
EOF
155
162
156
163
- name : Configure GHCR mirror
0 commit comments