Skip to content

Commit bedfdbd

Browse files
authored
Fix missing python in windows CI (#660)
1 parent e96a1ab commit bedfdbd

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,13 +250,18 @@ jobs:
250250
251251
252252
windows:
253-
runs-on: windows-2022 # latest
253+
runs-on: windows-2022
254254
strategy:
255255
matrix:
256256
arch: [x86, x64]
257257
permissions:
258258
id-token: write # This is required for requesting the JWT
259259
steps:
260+
- uses: actions/setup-python@v5
261+
id: python38
262+
with:
263+
python-version: '3.8.10'
264+
architecture: ${{ matrix.arch }}
260265
- uses: ilammy/setup-nasm@v1
261266
- name: configure AWS credentials (containers)
262267
uses: aws-actions/configure-aws-credentials@v4
@@ -266,7 +271,7 @@ jobs:
266271
- name: Build ${{ env.PACKAGE_NAME }} + consumers
267272
run: |
268273
python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')"
269-
python builder.pyz build -p ${{ env.PACKAGE_NAME }} --python "C:\\hostedtoolcache\\windows\\Python\\3.8.10\\${{ matrix.arch }}\\python.exe"
274+
python builder.pyz build -p ${{ env.PACKAGE_NAME }} --python "${{ steps.python38.outputs.python-path }}"
270275
271276
macos:
272277
runs-on: macos-14 # latest

0 commit comments

Comments
 (0)