-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new template cylc-dev (and test building in GitHub actions) (#1410)
This PR adds a new template cylc-dev to build a special environment for running cylc. Because of the way cylc works, this is best accomplished by creating an environment view and then a cylc wrapper that contains the minimum settings necessary to use cylc from the view's bin directory. See cylc/cylc-flow#6532 for more information. Note that the creation of the cylc wrapper is not part of this PR. Associated changes: - To compile cylc-dev on the Ubuntu self-hosted runner, exclude meson from the spack external find call. Spack found a deprecated version [email protected] and despite it being deprecated it tried to use it - with the result that the harfbuzz build failed (needed for cylc-dev). Letting spack build meson (it picks [email protected]) solved the problem. - Remove the +excel variant from py-pandas, which was something the jedi-tools-env used, but that is no longer needed and that caused build errors (and added several more dependencies). - Fix a bug in the GitHub actions that would allow the tests to fail silently (replace set +e with set -e). - To avoid duplicate packages, require py-cython@3 and [email protected] - With Intel Classic/LLVM, build qt with gcc (has no effect on pre-configured sites, where qt is configured as an external package)
- Loading branch information
Showing
12 changed files
with
84 additions
and
32 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,9 @@ packages: | |
boost: | ||
require: | ||
- '%gcc' | ||
qt: | ||
require: | ||
- '%gcc' | ||
ecflow: | ||
require: | ||
- '%gcc' | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,6 @@ packages: | |
require: '%gcc' | ||
libbsd: | ||
require: '%gcc' | ||
qt: | ||
require: | ||
- '%gcc' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,10 +48,16 @@ compilers:: | |
- compiler: | ||
spec: [email protected] | ||
paths: | ||
# Still need Cray wrappers for most environments | ||
cc: cc | ||
cxx: CC | ||
f77: ftn | ||
fc: ftn | ||
# For cylc-dev, can't use Cray wrappers | ||
#cc: /opt/cray/pe/gcc/10.3.0/snos/bin/gcc | ||
#cxx: /opt/cray/pe/gcc/10.3.0/snos/bin/g++ | ||
#f77: /opt/cray/pe/gcc/10.3.0/snos/bin/gfortran | ||
#fc: /opt/cray/pe/gcc/10.3.0/snos/bin/gfortran | ||
flags: {} | ||
operating_system: sles15 | ||
modules: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Template for CYLC (flow, rose, GUI). Supported with GCC only. | ||
# Creates a view that allows users to define (manually for now) | ||
# simple wrappers for cylc that can be aliased as "cylc": | ||
# | ||
##!/bin/bash | ||
##CYLC_INSTALL_DIR=/path/to/env/view/bin | ||
##PATH=${CYLC_INSTALL_DIR}:$PATH | ||
##unset PYTHONPATH | ||
##cylc "$@" | ||
# | ||
spack: | ||
concretizer: | ||
unify: true | ||
|
||
view: | ||
cylc: | ||
root: view | ||
select: [^python] | ||
link: run | ||
link_type: symlink | ||
include: [] | ||
|
||
definitions: | ||
- compilers: ['%gcc'] | ||
- packages: | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
|
||
specs: | ||
- matrix: | ||
- [$packages] | ||
- [$compilers] |
Submodule spack
updated
10 files
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