Skip to content

Commit

Permalink
try fix windows-python.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sgatto committed Sep 20, 2024
1 parent 8ed9ecf commit e2bb260
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/windows-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,26 +75,18 @@ jobs:

- name: Install python3
run: python3 -m pip install --user mypy-protobuf absl-py setuptools wheel numpy pandas
- name: Add Python binaries to path
run: >
echo "$((Get-Item ~).FullName)/AppData/Roaming/Python/${{ matrix.python.dir }}/Scripts" |
Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Apply patch
shell: bash
run: |
cp -r patch/ortools patch/patch.py patch/patch_utils.py patch/cmake_patches .
python patch.py
- name: Install SWIG 4.1.1
run: |
(New-Object System.Net.WebClient).DownloadFile("http://prdownloads.sourceforge.net/swig/swigwin-4.1.1.zip","swigwin-4.1.1.zip");
Expand-Archive .\swigwin-4.1.1.zip .;
echo "$((Get-Item .).FullName)/swigwin-4.1.1" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
Remove-Item .\swigwin-4.1.1.zip
- name: Check swig
run: swig -version
- name: Add Python binaries to path Windows
run: >
echo "$((Get-Item ~).FullName)/AppData/Roaming/Python/${{ matrix.python.dir }}/Scripts" |
Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Set-up Xpress with pip
shell: bash
run: |
Expand Down

0 comments on commit e2bb260

Please sign in to comment.