8000 pandoc experiment · winpython/winpython@6b68bcd · GitHub
[go: up one dir, main page]

Skip to content

Commit 6b68bcd

Browse files
committed
pandoc experiment
1 parent c9088b1 commit 6b68bcd

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

.github/workflows/github_workflows_build-all_3.14.yml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
ZIP: "1"
2424
SEVEN_Z: "0"
2525
EXE: "1"
26+
PANDOC: "0"
2627
ARTIFACT_NAME: "publish_314dotc"
2728
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"
2829
python_sha256f: "361a49531a5d4bdc72bbccc81f7b5881b5eb751e3b47683b233cacae5aeeaeed"
@@ -38,6 +39,7 @@ jobs:
3839
ZIP: "1"
3940
SEVEN_Z: "0"
4041
EXE: "1"
8000 42+
PANDOC: "1"
4143
ARTIFACT_NAME: "publish_314freec"
4244
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"
4345
python_sha256f: "dda491993214ae78948297848aa9d75d1d10762c33ff16487793ca5205516e4a"
@@ -61,7 +63,7 @@ jobs:
6163
echo "WINPYVER2=${{ matrix.flavor_config.WINPYVER2 }}" >> $GITHUB_ENV
6264
echo "my_release_level=${{ matrix.flavor_config.my_release_level }}" >> $GITHUB_ENV
6365
echo "WINPYVER=${{ matrix.flavor_config.WINPYVER2 }}${{ matrix.flavor_config.FLAVOR }}${{ matrix.flavor_config.my_release_level }}" >> $GITHUB_ENV
64-
66+
6567
# Set matrix-specific variables
6668
echo "WINPYFLAVOR=${{ matrix.flavor_config.FLAVOR }}" >> $GITHUB_ENV
6769
echo "WINPYrequirements=${{ matrix.flavor_config.REQUIREMENTS }}" >> $GITHUB_ENV
@@ -73,6 +75,8 @@ jobs:
7375
echo "python_sourcef=${{ matrix.flavor_config.python_sourcef }}" >> $GITHUB_ENV
7476
echo "python_sha256f=${{ matrix.flavor_config.python_sha256f }}" >> $GITHUB_ENV
7577
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
7680
7781
- name: See variables
7882
shell: pwsh
@@ -136,6 +140,31 @@ jobs:
136140
New-Item -ItemType Directory -Path $env:build_location
137141
Get-ChildItem -Path dotpython -Force | Move-Item -Destination $env:build_location -Force
138142
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+
139168
- name: Upgrade pip and patch launchers
140169
shell: pwsh
141170
run: |

0 commit comments

Comments
 (0)
0