|
45 | 45 | with: |
46 | 46 | python-version: ${{ matrix.python }} |
47 | 47 |
|
| 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 | +
|
48 | 67 | - name: Install build dependencies |
49 | 68 | run: python -m pip install numpy wheel pytest |
50 | 69 |
|
|
77 | 96 | shell: pwsh |
78 | 97 | run: vcpkg install openblas[threads] |
79 | 98 |
|
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 |
96 | 99 |
|
97 | 100 | - name: Test python install |
98 | 101 | run: | |
|
0 commit comments