Skip to content

Commit

Permalink
Use python 3.11 on windows ci
Browse files Browse the repository at this point in the history
  • Loading branch information
lepapareil committed Dec 6, 2024
1 parent 5f91b14 commit 983779f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -552,10 +552,14 @@ jobs:
with:
path: C:\vcpkg
key: ${{ runner.os }}-release-windows-x64
- name: Environment
run: .\bin\environment.ps1
- name: Install prerequisites
run: .\bin\install_prerequisites_windows.ps1
- name: Install Python 3.11
uses: actions/[email protected]
with:
python-version: '3.11'
- name: Environment
run: .\bin\environment.ps1
- name: Build
run: |
.\bin\release\release.ps1
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -400,10 +400,14 @@ jobs:
with:
path: C:\vcpkg
key: ${{ runner.os }}-test-windows-x64
- name: Environment
run: .\bin\environment.ps1
- name: Install Prerequisites
run: .\bin\install_prerequisites_windows.ps1
- name: Install Python 3.11
uses: actions/[email protected]
with:
python-version: '3.11'
- name: Environment
run: .\bin\environment.ps1
- name: Build and test
run: .\bin\test\test.ps1
- name: Archive production artifacts
Expand Down
6 changes: 4 additions & 2 deletions bin/install_prerequisites_windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ Set-ItemProperty -Path HKCU:\Environment -Name VCPKGRS_DYNAMIC -Value "1"
$env:VCPKGRS_DYNAMIC = [System.Environment]::GetEnvironmentVariable("VCPKGRS_DYNAMIC","User")
if ($LASTEXITCODE) { Throw }

# update pip
python -m pip install --upgrade pip --quiet
# install python 3.11
choco install --confirm python311
if ($LASTEXITCODE) { Throw }
python3 -m pip install --upgrade pip --quiet
if ($LASTEXITCODE) { Throw }

# install proxy
Expand Down

0 comments on commit 983779f

Please sign in to comment.