Skip to content

Commit d07cab2

Browse files
authoredNov 8, 2024··
Add some comments and move libevent version spec
1 parent 7ba7b00 commit d07cab2

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed
 

‎.github/workflows/spack_build.yml

+16-9
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,13 @@ jobs:
102102
- hiop@develop+mpi~raja~shared~kron~sparse ^openmpi
103103
- hiop@develop~mpi~raja~shared~kron~sparse
104104
- 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
109112

110113
name: Build HiOp with Spack
111114

@@ -130,11 +133,10 @@ jobs:
130133
spack:
131134
specs:
132135
- ${{ matrix.spack_spec }} target=x86_64_v2
133-
- openblas
134-
- libevent~openssl
136+
- ${{ matrix.blas_provider }} target=x86_64_v2
135137
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!
138140
config:
139141
source_cache: $SPACK_CACHE/source_cache
140142
misc_cache: $SPACK_CACHE/misc_cache
@@ -144,13 +146,18 @@ jobs:
144146
padded_length: False
145147
mirrors:
146148
local-buildcache: oci://${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
149+
# If the spack buildcache fails for any readon, feel free to disable
147150
spack: https://binaries.spack.io/develop
148151
packages:
149152
all:
150-
require: "%gcc"
153+
require: "%${{ matrix.compiler }}"
151154
# https://spack.readthedocs.io/en/latest/packages_yaml.html#setting-requirements-on-virtual-specs
152155
cmake:
156+
# We don't need CMake GUI features for minimal container builds
153157
require: "~qtgui~ncurses"
158+
libevent:
159+
# Building OpenSSL was causing errors
160+
require: "~openssl"
154161
EOF
155162
156163
- name: Configure GHCR mirror

0 commit comments

Comments
 (0)
Please sign in to comment.