Skip to content

Commit be161cb

Browse files
authored
Update build.yaml
1 parent 0a2c152 commit be161cb

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/build.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,22 @@ jobs:
122122
if: matrix.config.name == 'windows'
123123

124124
- name: Setup Python
125-
if: matrix.config.name != 'windows'
126125
uses: actions/setup-python@v6
127126
with:
128127
python-version: '3.13'
129128

130-
- name: Setup Python (Windows)
129+
- name: launcher wrapper
131130
if: matrix.config.name == 'windows'
132131
shell: powershell
133-
run: choco install python313 -y
132+
run: |
133+
@'
134+
@echo off
135+
setlocal
136+
set "args=%*"
137+
set "args=%args:-3=%"
138+
python %args%
139+
'@ | Out-File -FilePath "$env:TEMP\py.cmd" -Encoding ASCII
140+
echo "$env:TEMP" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
134141
135142
- name: Update submodule
136143
run: |

0 commit comments

Comments
 (0)