Closed SeanBryan51 closed 6 months ago
We can add a new parameter that takes in a shell command (or a series of shell commands by specifying a multiline string) run from the root directory of the CABLE repository. For example:
build_run: |
cd offline
./build.sh --some-flag
After discussing with @ccarouge, we have decided to add support for spack and to deprecate support for legacy CABLE build systems in benchcab. This adds the requirement that users will only be able to test benchcab on branches that can be built by spack. ACCESS-NRI will help with transitioning legacy build systems to use the latest build system compatible with spack.
Moving to spack will solve existing issues around supporting bespoke build scripts (e.g. #244, #249). This is the best way forward considering support for legacy build systems is a temporary that will be deprecated sooner or later.
Closing this issue.
We currently support building legacy CABLE versions via the
build_script
key, where a path to a build script can be provided for benchcab to execute at the build step. Some issues with this approach are:This functionality will be needed as most development versions of CABLE will have different build systems, especially when there are significant developments to the CABLE build system for the main branch (e.g. https://github.com/CABLE-LSM/CABLE/pull/200) .
Note, see here for a relevant discussion around this issue.