Skip to content

Commit 5ee6d9d

Browse files
committed
fix mmg for linux
1 parent 2beff2e commit 5ee6d9d

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/test-upload.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ jobs:
165165
set -euo pipefail; \
166166
/opt/python/cp39-cp39/bin/python -m pip install -U pip; \
167167
/opt/python/cp39-cp39/bin/python -m pip install --no-deps /dist/$wheel_arm_base; \
168-
/opt/python/cp39-cp39/bin/python - <<'PY'\nimport os\nimport subprocess\nimport tempfile\n\nos.chdir(tempfile.mkdtemp(prefix='svv-wheel-validate-'))\n\nfrom svv.utils.remeshing.mmg import get_mmg_exe\n\nexe = get_mmg_exe('mmgs')\nprint('MMG selected:', exe)\nproc = subprocess.run([str(exe), '-h'], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, timeout=10, check=False)\nprint('mmgs -h exit:', proc.returncode)\nPY"
168+
/opt/python/cp39-cp39/bin/python -c \"import os, subprocess, tempfile; os.chdir(tempfile.mkdtemp(prefix='svv-wheel-validate-')); from svv.utils.remeshing.mmg import get_mmg_exe; exe = get_mmg_exe('mmgs'); print('MMG selected:', exe); proc = subprocess.run([str(exe), '-h'], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, timeout=10, check=False); print('mmgs -h exit:', proc.returncode)\" \
169+
"
169170
170171
- name: Upload artifacts
171172
uses: actions/upload-artifact@v4

.github/workflows/upload.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ jobs:
165165
set -euo pipefail; \
166166
/opt/python/cp39-cp39/bin/python -m pip install -U pip; \
167167
/opt/python/cp39-cp39/bin/python -m pip install --no-deps /dist/$wheel_arm_base; \
168-
/opt/python/cp39-cp39/bin/python - <<'PY'\nimport os\nimport subprocess\nimport tempfile\n\nos.chdir(tempfile.mkdtemp(prefix='svv-wheel-validate-'))\n\nfrom svv.utils.remeshing.mmg import get_mmg_exe\n\nexe = get_mmg_exe('mmgs')\nprint('MMG selected:', exe)\nproc = subprocess.run([str(exe), '-h'], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, timeout=10, check=False)\nprint('mmgs -h exit:', proc.returncode)\nPY"
168+
/opt/python/cp39-cp39/bin/python -c \"import os, subprocess, tempfile; os.chdir(tempfile.mkdtemp(prefix='svv-wheel-validate-')); from svv.utils.remeshing.mmg import get_mmg_exe; exe = get_mmg_exe('mmgs'); print('MMG selected:', exe); proc = subprocess.run([str(exe), '-h'], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, timeout=10, check=False); print('mmgs -h exit:', proc.returncode)\" \
169+
"
169170
170171
- name: Upload artifacts
171172
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)