|
23 | 23 | ZIP: "1" |
24 | 24 | SEVEN_Z: "0" |
25 | 25 | EXE: "1" |
| 26 | + PANDOC: "0" |
26 | 27 | ARTIFACT_NAME: "publish_314dotc" |
27 | 28 | python_sourcef: "https://github.com/astral-sh/python-build-standalone/releases/download/20250818/cpython-3.14.0rc2+20250818-x86_64-pc-windows-msvc-install_only_stripped.tar.gz" |
28 | 29 | python_sha256f: "361a49531a5d4bdc72bbccc81f7b5881b5eb751e3b47683b233cacae5aeeaeed" |
|
38 | 39 | ZIP: "1" |
39 | 40 | SEVEN_Z: "0" |
40 | 41 | EXE: "1" |
|
8000
42 | + PANDOC: "1" |
41 | 43 | ARTIFACT_NAME: "publish_314freec" |
42 | 44 | python_sourcef: "https://github.com/winpython/winpy.github.io/releases/download/20250825/cpython-3.14.0rc2+20250825-x86_64-pc-windows-msvc-freethreaded-install_only_stripped.tar.gz" |
43 | 45 | python_sha256f: "dda491993214ae78948297848aa9d75d1d10762c33ff16487793ca5205516e4a" |
|
61 | 63 | echo "WINPYVER2=${{ matrix.flavor_config.WINPYVER2 }}" >> $GITHUB_ENV |
62 | 64 | echo "my_release_level=${{ matrix.flavor_config.my_release_level }}" >> $GITHUB_ENV |
63 | 65 | echo "WINPYVER=${{ matrix.flavor_config.WINPYVER2 }}${{ matrix.flavor_config.FLAVOR }}${{ matrix.flavor_config.my_release_level }}" >> $GITHUB_ENV |
64 | | - |
| 66 | +
|
65 | 67 | # Set matrix-specific variables |
66 | 68 | echo "WINPYFLAVOR=${{ matrix.flavor_config.FLAVOR }}" >> $GITHUB_ENV |
67 | 69 | echo "WINPYrequirements=${{ matrix.flavor_config.REQUIREMENTS }}" >> $GITHUB_ENV |
|
73 | 75 | echo "python_sourcef=${{ matrix.flavor_config.python_sourcef }}" >> $GITHUB_ENV |
74 | 76 | echo "python_sha256f=${{ matrix.flavor_config.python_sha256f }}" >> $GITHUB_ENV |
75 | 77 |
|
| 78 | + echo "pandoc_source=https://github.com/jgm/pandoc/releases/download/3.1.9/pandoc-3.1.9-windows-x86_64.zip" >> $GITHUB_ENV |
| 79 | + echo "pandoc_sha256=f11eb6dbe5286c9e5edb0cca4412e7d99ec6578ec04158b0b7fe11f7fd96688e5" >> $GITHUB_ENV |
76 | 80 |
|
77 | 81 | - name: See variables |
78 | 82 | shell: pwsh |
@@ -136,6 +140,31 @@ jobs: |
136 | 140 | New-Item -ItemType Directory -Path $env:build_location |
137 | 141 | Get-ChildItem -Path dotpython -Force | Move-Item -Destination $env:build_location -Force |
138 | 142 |
|
| 143 | + - name: Download and integrate pandoc binary |
| 144 | + shell: pwsh |
| 145 | + if: ${{ matrix.flavor_config.PANDOC == '1' }} |
| 146 | + run: | |
| 147 | + # Define the URL for the Pandoc binary and the target path |
| 148 | + $pandocUrl = "https://github.com/jgm/pandoc/releases/download/3.1.9/pandoc-3.1.9-windows-x86_64.zip" |
| 149 | + $pandocZipPath = "pandoc.zip" |
| 150 | + $targetDir = "$env:build_location\t" |
| 151 | + |
| 152 | + # Download the zip file |
| 153 | + Write-Host "Downloading Pandoc from $pandocUrl" |
| 154 | + curl.exe -L -o $pandocZipPath $pandocUrl |
| 155 | + |
| 156 | + # Create the target directory |
| 157 | + Write-Host "Creating directory $targetDir" |
| 158 | + mkdir $targetDir |
| 159 | + |
| 160 | + # Unzip the contents into the new directory |
| 161 | + Write-Host "Extracting archive to $targetDir" |
| 162 | + Expand-Archive -Path $pandocZipPath -DestinationPath $targetDir -Force |
| 163 | + |
| 164 | + # Optional: Verify the contents |
| 165 | + Write-Host "Listing contents of $targetDir:" |
| 166 | + Get-ChildItem -Path $targetDir |
| 167 | +
|
139 | 168 | - name: Upgrade pip and patch launchers |
140 | 169 | shell: pwsh |
141 | 170 | run: | |
|
0 commit comments