-
Notifications
You must be signed in to change notification settings - Fork 13
CI and build fixes #40
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
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
86a4c49
Update radiuss-spack-config commit
tdrwenski b75c016
Remove unneeded link command
tdrwenski dbc5c2e
Either load BLT from CMakeCache or submodule
tdrwenski 219233f
Update radiuss-spack-configs quandary spack package
tdrwenski fad0d70
Remove CI shared job workaround
tdrwenski c4bc6cb
Update radiuss-spack-configs netlib-lapack
tdrwenski 81d5a54
Force use of working version of netlib-lapack in CI
tdrwenski 0fba338
Update CI script and tests to account for the case that mpiexec is fl…
tdrwenski 85dd85e
Require mpi on ruby to use the same compiler as quandary
tdrwenski 913af97
Add linux github workflow job
tdrwenski 4f0bb89
Never use quandary from buildcache
tdrwenski a9084ad
Also run tests on main
tdrwenski a35b3f0
Force push quandary to cache
tdrwenski 9a63c1e
Remove unnecessary cp since quandary is always rebuilt
tdrwenski cf17566
Explicitly ask for openmpi so that mpich does not get used (avoid rpa…
tdrwenski 6683ed6
Add Docker platform to spack buildcache images
tdrwenski b604da4
Force push linux buildcache packages to ensure dockerized quandary ha…
tdrwenski f5a094b
Use LLNL ghcr for spack buildcache
tdrwenski 35769e5
Fix comment
tdrwenski 6e6e6aa
Update radiuss-spack-configs version
tdrwenski 175e13e
Fix workflow buildcache push to only force push quandary and not othe…
tdrwenski File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
Submodule radiuss-spack-configs
updated
44 files
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,59 @@ | ||
name: Build and Test | ||
|
||
on: | ||
pull_request: | ||
branches: ['main'] | ||
push: | ||
branches: ['main'] | ||
|
||
jobs: | ||
build-and-test: | ||
strategy: | ||
matrix: | ||
os: [macos-latest, ubuntu-24.04] | ||
runs-on: ${{ matrix.os }} | ||
permissions: | ||
packages: write | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Set up Spack | ||
uses: spack/setup-spack@v2 | ||
|
||
- name: Configure Spack | ||
run: | | ||
spack -e .spack_env mirror set binary_mirror --unsigned | ||
spack mirror add --type binary --unsigned --oci-username GITHUB_USER --oci-password-variable GITHUB_TOKEN local-buildcache oci://ghcr.io/LLNL/quandary-spack-buildcache | ||
|
||
- name: Install | ||
# explicitly use openmpi, since mpich causes rpath problems in binary | ||
run: | | ||
spack -e .spack_env rm quandary | ||
spack -e .spack_env add quandary@develop+test^openmpi | ||
spack -e .spack_env install --use-buildcache package:never | ||
|
||
- name: Run regression tests | ||
shell: spack-sh {0} | ||
run: | | ||
spack env activate .spack_env | ||
python -m pip install -e . --prefer-binary | ||
pytest -v -s regression_tests --mpi-opt="--oversubscribe" | ||
|
||
- name: Push packages and update index | ||
env: | ||
GITHUB_USER: ${{ github.actor }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
DOCKER_DEFAULT_PLATFORM: linux/amd64 | ||
run: | | ||
if [[ "${{ matrix.os }}" == "ubuntu-24.04" ]]; then | ||
# Force push quandary package | ||
spack -e .spack_env buildcache push -f --base-image ubuntu:24.04 --update-index local-buildcache quandary | ||
spack -e .spack_env buildcache push --base-image ubuntu:24.04 --update-index local-buildcache | ||
else | ||
spack -e .spack_env buildcache push --update-index local-buildcache | ||
fi | ||
if: ${{ !cancelled() }} |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@steffi7574 This should fix your issue