Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E2E Test: CD Merge for Multi-Target Workflows (#4) #20

Merged
merged 9 commits into from
Jan 28, 2025
Merged
1 change: 1 addition & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ jobs:
model: ${{ vars.NAME }}
permissions:
contents: write
pull-requests: write
secrets: inherit
33 changes: 26 additions & 7 deletions spack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,28 @@
#
# It describes a set of packages to be installed, along with
# configuration settings.
# This is testing of the dev-121-multi-target-workflows branch!!!
spack:
definitions:
- ROOT_PACKAGE:
- [email protected]

# Specific case for Gadi - should be run
- when: env['DEPLOYMENT_TARGET'] == 'gadi'
compiler_targets:
- [email protected] target=x86_64

# Default case, shouldn't be used
- when: '"DEPLOYMENT_TARGET" not in env'
compiler_targets:
- [email protected] target=x86_64

- ROOT_SPEC:
- matrix:
- [$ROOT_PACKAGE]
- [$%compiler_targets]
specs:
- [email protected]
- $ROOT_SPEC
packages:
oasis3-mct:
require:
Expand All @@ -19,11 +38,11 @@ spack:
require:
- '@4.1.5'
- 'cppflags="-diag-disable=10441"'
# Specifications that apply to all packages
all:
require:
- '%[email protected]'
- 'target=x86_64'
# Specifications that apply to all packages - not relevant with multi-target builds
# all:
# require:
# - '%[email protected]'
# - 'target=x86_64'
view: true
concretizer:
unify: true
Expand All @@ -34,5 +53,5 @@ spack:
- access-test
- oasis3-mct
projections:
access-test: '{name}/2024.11.15'
access-test: '{name}/2025.01.0'
oasis3-mct: '{name}/2023.11.09-{hash:7}'
Loading