-
-
Notifications
You must be signed in to change notification settings - Fork 16
Overhaul spack CI #89
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
40 commits
Select commit
Hold shift + click to select a range
e25c969
Use super.
BenjaminRodenberg e626b71
Remove incorrect and update correct file.
BenjaminRodenberg 392dd78
Experiment with architecture proposed in https://github.com/haampie-s…
BenjaminRodenberg d6d1d27
Add workflow for building dependencies from https://github.com/haampi…
BenjaminRodenberg 97c513d
Rename
BenjaminRodenberg a88bf47
build-env.yml
BenjaminRodenberg 1289eb5
Fix paths and names.
BenjaminRodenberg cea094c
Manually add pkgconfig
BenjaminRodenberg 63b2248
Remove unneeded file.
BenjaminRodenberg 73faeff
Merge branch 'spack-ci-improvements' of github.com:precice/python-bin…
BenjaminRodenberg c34d984
Add hotfix for pkgconfig.
BenjaminRodenberg a898c2e
Don't install pkgconfig manually
BenjaminRodenberg c891c6d
Use spack dev-build, don't use jinja.
BenjaminRodenberg 3a6b3ff
Use py-pyprecice@devleop
BenjaminRodenberg aee5bc8
Increase timeout.
BenjaminRodenberg 3c5e2e4
Fix name of env
BenjaminRodenberg b2c861f
Don't remove environment
BenjaminRodenberg 6d890ec
Fix package.py
BenjaminRodenberg 9691800
Try overwriting package.py
BenjaminRodenberg ab4d3a9
Only build env on a weekly basis.
BenjaminRodenberg 00c17b9
Fix env name.
BenjaminRodenberg d4ff597
Comment out install for older versions
BenjaminRodenberg 69fdaac
Go to independent directory to avoid false imports
BenjaminRodenberg 186bd36
Explicitly load py-pyprecice
BenjaminRodenberg aad7ecd
Load all dependencies.
BenjaminRodenberg 838c18a
Revert changes in install.
BenjaminRodenberg 1048f8d
Update README.md
BenjaminRodenberg 74a5dbf
Remove hotfix from this repository. https://github.com/spack/spack/is…
BenjaminRodenberg 8ee7c76
Merge branch 'develop' into spack-ci-improvements
BenjaminRodenberg e3371fd
Remove spack.yaml.
BenjaminRodenberg bad16b0
Only add repo, not all sources.
BenjaminRodenberg 1a61b7e
Remove WORKDIR.
BenjaminRodenberg 6eca69a
Merge branch 'develop' into spack-ci-improvements
BenjaminRodenberg da23d16
Merge branch 'develop' into spack-ci-improvements
BenjaminRodenberg 5b08b87
Remove py-wheel.
BenjaminRodenberg 14d8a7f
Copy is not necessary due to dev-build.
BenjaminRodenberg b7e4d5d
Revert "Copy is not necessary due to dev-build."
BenjaminRodenberg 00b9101
Print arch and modules
BenjaminRodenberg 6b37ff6
Build for generic architecture x86_64. #81
BenjaminRodenberg 17dabd8
Specify target.
BenjaminRodenberg 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| name: Update build environment | ||
|
|
||
| on: | ||
| workflow_dispatch: # Trigger by hand from the UI | ||
| schedule: | ||
| - cron: '0 0 * * 0' # Schedule it every Sunday | ||
|
|
||
| jobs: | ||
| build-spack-pyprecice-deps: | ||
| name: Builds the baseimage for spack providing dependencies | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout Repository | ||
| uses: actions/checkout@v2 | ||
| - name: Set up Docker | ||
| uses: docker/setup-buildx-action@v1 | ||
| - name: Login to registry | ||
| uses: docker/login-action@v1 | ||
| with: | ||
| username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
| password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
| - name: Build and push | ||
| uses: docker/build-push-action@v2 | ||
| with: | ||
| push: true | ||
| context: . | ||
| file: spack/ci-spack-pyprecice-deps-1804.dockerfile | ||
| tags: precice/ci-spack-pyprecice-deps-1804 |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,11 @@ | ||
| # Build stage with Spack pre-installed and ready to be used | ||
| FROM spack/ubuntu-bionic:latest | ||
| RUN spack env create precice | ||
| # Install dependencies for precice and py-pyprecice | ||
| RUN spack env activate precice \ | ||
| && spack add boost@1.74.0 cmake@3.18.4 eigen@3.3.8 openssh petsc@3.14.1 pkgconfig precice@develop py-setuptools py-wheel py-cython py-numpy py-mpi4py \ | ||
| && spack concretize -f \ | ||
| && spack install | ||
| FROM spack/ubuntu-bionic:latest | ||
|
|
||
| # Mount the current sources into the build container | ||
| # and build the default environment | ||
| ADD ./spack/repo /py-pyprecice-repo | ||
| RUN spack --color=always env create --without-view ci && \ | ||
| spack --color=always -e ci add py-pyprecice@develop target=x86_64 && \ | ||
| spack --color=always -e ci repo add /py-pyprecice-repo && \ | ||
| spack --color=always -e ci install --fail-fast --only=dependencies && \ | ||
| spack --color=always clean -a |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| repo: | ||
| namespace: 'spack' |
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.
Uh oh!
There was an error while loading. Please reload this page.