Build WinPython Dot 3.13.6, #7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build WinPython Dot 3.13, # fix to build #5, Copilote AI pwsh was not a so good idea | |
on: | |
workflow_dispatch: | |
jobs: | |
build-dot: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Download python-3.13 standalone | |
#shell: cmd | |
run: | | |
#curl -L -o python-3.13-embed.zip https://github.com/indygreg/python-build-standalone/releases/download/20240421/cpython-3.13.0b1+20240421-x86_64-pc-windows-msvc-shared-install_only.zip | |
curl -L -o python-3.13-embed.zip https://github.com/astral-sh/python-build-standalone/releases/download/20250807/cpython-3.13.6+20250807-x86_64-pc-windows-msvc-install_only_stripped.tar.gz | |
- name: Show downloaded file info | |
shell: pwsh | |
run: | | |
Get-Item python-3.13-embed.zip | Format-List Name,Length,LastWriteTime | |
- name: Wait before extraction | |
shell: pwsh | |
run: | | |
Start-Sleep -Seconds 2 | |
- name: Extract python-3.13-embed.zip | |
#shell: pwsh | |
run: | | |
#New-Item -ItemType Directory -Path dotpython | |
#Expand-Archive -Path python-3.13-embed.zip -DestinationPath dotpython | |
mkdir dotpython | |
tar -xf python-3.13-embed.zip -C dotpython | |
- name: List dotpython contents (for debugging) | |
shell: pwsh | |
run: | | |
Get-ChildItem -Recurse dotpython | |
- name: Prepare WinPython dot structure | |
shell: pwsh | |
run: | | |
New-Item -ItemType Directory -Path WinPython-dot-3.13 | |
# Get-ChildItem dotpython | Move-Item -Destination WinPython-dot-3.13 | |
# fix: Usually, indygreg zips extract all files directly into the target, not into a subfolder: dotpython/python.exe, dotpython/Lib, etc. | |
Get-ChildItem -Path dotpython -Force | Move-Item -Destination WinPython-dot-3.13 -Force | |
# Add more WinPython-specific folders/files here if needed | |
- name: List WinPython-dot-3.13 contents (for debugging) | |
shell: pwsh | |
run: | | |
Get-ChildItem -Recurse WinPython-dot-3.13 | |
- name: Zip the result | |
# run: | | |
# Compress-Archive -Path WinPython-dot-3.13\* -DestinationPath WinPython-dot-3.13.zip | |
shell: pwsh | |
run: | | |
Compress-Archive -Path WinPython-dot-3.13\* -DestinationPath WinPython-dot-3.13.zip | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: WinPython-dot-3.13 | |
path: WinPython-dot-3.13.zip |