Skip to content

Commit

Permalink
Separate mgx and magix3d in workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
lelandaisb committed Sep 20, 2023
1 parent f29978e commit e97fb2b
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 2 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/check-magix3d.yml
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
1 change: 0 additions & 1 deletion .github/workflows/check-mgx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,4 @@ jobs:
spack repo add /spack_recipes/meshing_supersede
spack env activate meshing-env
spack add mgx~smooth3d^vtk-maillage~opengl2+qt
spack add magix3d~smooth3d~pythonaddon+doc ^vtk-maillage~opengl2+qt ^qt+opengl
spack install -v --no-checksum -v
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,4 @@ jobs:
# subsequent commands
run: |
source ${{github.workspace}}/spack/share/spack/setup-env.sh
spack spec mgx~smooth3d ^vtk-maillage~opengl2+qt ^qt+opengl
spack spec magix3d~smooth3d~pythonaddon+doc ^vtk-maillage~opengl2+qt ^qt+opengl
44 changes: 44 additions & 0 deletions .github/workflows/check-spec-mgx.yml
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

0 comments on commit e97fb2b

Please sign in to comment.