Skip to content

Commit

Permalink
fix: GitHub workflow for Windows by pinning python to 3.12 (#12052)
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepDiver1975 authored Jan 30, 2025
1 parent 33152bf commit 5167669
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/.craft.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
if ($IsWindows) {
$python = (Get-Command py).Source
$python=(py -c "import sys; print(sys.executable)")
$python=(python -c "import sys; print(sys.executable)")
Write-Host "Python ${python}"
} else {
$python = (Get-Command python3).Source
}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ jobs:
if: ${{ !matrix.useSonarCloud && matrix.name != 'linux-gcc-x86_64' }}
uses: actions/checkout@v4

- uses: actions/setup-python@v5
if: matrix.name == 'windows-cl-x86_64'
with:
python-version: '3.12'

- name: Restore cache
uses: actions/cache@v4
with:
Expand Down

0 comments on commit 5167669

Please sign in to comment.