Skip to content

Commit c979855

Browse files
committed
file first
1 parent 980cf3c commit c979855

File tree

1 file changed

+19
-16
lines changed

1 file changed

+19
-16
lines changed

.github/workflows/test-python-win.yml

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,25 @@ jobs:
4545
with:
4646
python-version: ${{ matrix.python }}
4747

48+
- name: Edit pyproject
49+
run: |
50+
ls
51+
$VCPKG_ROOT = "C:/vcpkg"
52+
$METIS_ROOT = "${{ runner.workspace }}/installs"
53+
$TRIPLET = "x64-windows-static"
54+
$content = Get-Content pyproject.toml -Raw
55+
$newContent = $content -replace 'cmake\.args = \[\s*"-DPYTHON_BUILD_SETUP=ON"\s*\]', @"
56+
cmake.args = [
57+
"-DPYTHON_BUILD_SETUP=ON",
58+
"-DHIPO=ON",
59+
"-DCMAKE_TOOLCHAIN_FILE=$env:VCPKG_ROOT",
60+
"-DVCPKG_TARGET_TRIPLET=$env:TRIPLET",
61+
"-DMETIS_ROOT=$env:METIS_ROOT"
62+
]
63+
"@
64+
$newContent | Set-Content pyproject.toml
65+
cat pyproject.toml
66+
4867
- name: Install build dependencies
4968
run: python -m pip install numpy wheel pytest
5069

@@ -77,22 +96,6 @@ jobs:
7796
shell: pwsh
7897
run: vcpkg install openblas[threads]
7998

80-
- name: Edit pyproject
81-
run: |
82-
$VCPKG_ROOT = "C:/vcpkg"
83-
$METIS_ROOT = "C:/Users/galab/installs"
84-
$TRIPLET = "x64-windows-static"
85-
$content = Get-Content pyproject.toml -Raw
86-
$newContent = $content -replace 'cmake\.args = \[\s*"-DPYTHON_BUILD_SETUP=ON"\s*\]', @"
87-
cmake.args = [
88-
"-DPYTHON_BUILD_SETUP=ON",
89-
"-DHIPO=ON",
90-
"-DCMAKE_TOOLCHAIN_FILE=$env:VCPKG_ROOT",
91-
"-DVCPKG_TARGET_TRIPLET=$env:TRIPLET",
92-
"-DMETIS_ROOT=$env:METIS_ROOT"
93-
]
94-
"@
95-
$newContent | Set-Content pyproject.toml
9699

97100
- name: Test python install
98101
run: |

0 commit comments

Comments
 (0)