-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate mgx and magix3d in workflows
- Loading branch information
1 parent
f29978e
commit e97fb2b
Showing
4 changed files
with
76 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Check mgx | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- '**/package.py' | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- '**/package.py' | ||
|
||
jobs: | ||
main: | ||
name: Check mgx | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/lihpc-computational-geometry/spack-cgcore:latest | ||
|
||
steps: | ||
- name: Build and install | ||
shell: bash | ||
run: | | ||
source /spack/share/spack/setup-env.sh | ||
cd /spack_recipes && git pull | ||
spack repo add /spack_recipes/meshing | ||
spack repo add /spack_recipes/meshing_supersede | ||
spack env activate meshing-env | ||
spack add magix3d~smooth3d~pythonaddon+doc ^vtk-maillage~opengl2+qt ^qt+opengl | ||
spack install -v --no-checksum -v |
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Check spec | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- '**/package.py' | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- '**/package.py' | ||
|
||
jobs: | ||
Continuous: | ||
name: ${{ matrix.config }} | ||
# The CMake configure and build commands are platform agnostic and should work equally | ||
# well on Linux, Windows or Mac. | ||
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 2 # seems to be needed by codecov | ||
submodules: recursive | ||
|
||
- name: Initialize the environement | ||
shell: bash | ||
run: | | ||
git clone --depth=1 -b releases/latest https://github.com/spack/spack.git ${{github.workspace}}/spack | ||
source ${{github.workspace}}/spack/share/spack/setup-env.sh | ||
spack repo add ${{github.workspace}}/meshing | ||
spack repo add ${{github.workspace}}/meshing_supersede | ||
- name: Check Spack spec | ||
# We create a subdirectory that will stand as our working directory for all | ||
# subsequent commands | ||
run: | | ||
source ${{github.workspace}}/spack/share/spack/setup-env.sh | ||
spack spec mgx~smooth3d ^vtk-maillage~opengl2+qt ^qt+opengl |