Skip to content

Commit 75f3493

Browse files
committed
ci: windows UNURAN build
1 parent 5e45b89 commit 75f3493

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ jobs:
2121
- name: Checkout
2222
uses: actions/checkout@v4
2323

24+
- name: Sync submodules to tracked branches
25+
run: |
26+
git submodule sync --recursive
27+
git submodule update --init --remote --recursive
28+
2429
- name: Setup Python
2530
id: setup-python
2631
uses: actions/setup-python@v5
@@ -34,6 +39,35 @@ jobs:
3439
virtualenvs-create: true
3540
virtualenvs-in-project: true
3641

42+
- name: Clean up PATH on Windows
43+
if: runner.os == 'Windows'
44+
shell: pwsh
45+
run: |
46+
$clean = ($env:PATH -split ';' | Where-Object {
47+
$_ -notlike '*Git\usr\bin*' -and
48+
$_ -notlike '*Strawberry*'
49+
}) -join ';'
50+
echo "PATH=$clean" >> $env:GITHUB_ENV
51+
52+
- name: Set up MSVC dev cmd
53+
if: runner.os == 'Windows'
54+
uses: ilammy/msvc-dev-cmd@v1
55+
with:
56+
toolset: '14.29'
57+
arch: x64
58+
59+
- name: Remove Git link.exe from PATH
60+
if: runner.os == 'Windows'
61+
shell: pwsh
62+
run: |
63+
$gitLink = "C:\Program Files\Git\usr\bin\link.exe"
64+
if (Test-Path $gitLink) {
65+
Rename-Item $gitLink "link_gnu_backup.exe"
66+
Write-Host "Renamed Git link.exe -> link_gnu_backup.exe"
67+
} else {
68+
Write-Host "Git link.exe not found, nothing to do"
69+
}
70+
3771
- name: Cache pip wheels
3872
uses: actions/cache@v4
3973
with:

0 commit comments

Comments
 (0)