Skip to content

Commit c8048c5

Browse files
authored
Merge pull request #187 from fabinsch/release-ci-simplify
CI: simplify workflow on self-hosted M1
2 parents 2a1de31 + 93f7714 commit c8048c5

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ jobs:
1111
runs-on: ${{ matrix.os }}
1212
name: Build ${{ matrix.os }} ${{ matrix.python-version }}
1313
strategy:
14-
fail-fast: false
1514
matrix:
1615
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
1716
os: [ubuntu-latest, macos-latest, self-hosted-arm64, windows-2019, windows-latest]
@@ -82,24 +81,11 @@ jobs:
8281
run: |
8382
pip wheel . -w dist
8483
85-
- name: Turn off vectorization in pyproject.toml [arm64]
86-
if: contains(matrix.os, 'self-hosted')
87-
uses: jannekem/run-python-script-action@v1
88-
with:
89-
script: |
90-
import os
91-
print("Directory contents:")
92-
for f in os.listdir():
93-
print(f)
94-
import tomlkit
95-
with open("pyproject.toml") as f:
96-
doc = tomlkit.load(f)
97-
doc["build-system"]["configure-args"] = "-DBUILD_TESTING:BOOL=OFF","-DBUILD_PYTHON_INTERFACE:BOOL=ON","-DBUILD_WITH_VECTORIZATION_SUPPORT:BOOL=OFF","-DINSTALL_DOCUMENTATION:BOOL=OFF"
98-
with open("pyproject.toml", "w") as f:
99-
tomlkit.dump(doc, f)
10084
10185
- name: Build wheel on self-hosted
10286
if: contains(matrix.os, 'self-hosted')
87+
env :
88+
CMEEL_CMAKE_ARGS: "-DBUILD_TESTING=OFF -DBUILD_PYTHON_INTERFACE=ON -DBUILD_WITH_VECTORIZATION_SUPPORT=OFF -DINSTALL_DOCUMENTATION=OFF"
10389
shell: bash -l {0}
10490
run: |
10591
conda activate proxarm-py${{ matrix.python-version }}

0 commit comments

Comments
 (0)