-
Notifications
You must be signed in to change notification settings - Fork 1
93 lines (80 loc) · 2.87 KB
/
check-push.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: Check push
on:
[push, pull_request]
jobs:
lint-recipes:
name: Lint Recipes
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Flake8 on meshing
uses: py-actions/flake8@v2
with:
ignore: "E501,F405,F403"
path: "meshing"
- name: Flake8 on meshing_supersede
uses: py-actions/flake8@v2
with:
ignore: "E501,F405,F403,W504"
path: "meshing_supersede"
spack-spec-mgx3d:
# 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
name: Spack Spec Magix3D
runs-on: ubuntu-latest
needs: [lint-recipes]
strategy:
fail-fast: false
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 2 # seems to be needed by codecov
submodules: recursive
- name: Initialize Spack environment
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 magix3d~smooth3d~pythonaddon+doc ^vtk-maillage~opengl2+qt ^qt+opengl
spack-install-mgx3d:
# Do not replace $GITHUB_WORKSPACE by ${{github.workspace}}
# See https://github.com/actions/runner/issues/2058
name: Spack Install Magix3D
runs-on: ubuntu-latest
needs: [spack-spec-mgx3d]
container:
image: ghcr.io/lihpc-computational-geometry/spack-cgcore:latest
strategy:
fail-fast: false
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 2 # seems to be needed by codecov
submodules: recursive
- name: Initialize Spack Environment
shell: bash
run: |
source /spack/share/spack/setup-env.sh
spack repo add $GITHUB_WORKSPACE/meshing
spack repo add $GITHUB_WORKSPACE/meshing_supersede
- name: Build and Install Magix3D
shell: bash
run: |
source /spack/share/spack/setup-env.sh
spack env activate meshing-env
spack add magix3d~smooth3d~pythonaddon+doc ^vtk-maillage~opengl2+qt ^qt+opengl
spack install -v --no-checksum