Skip to content

Keep only Windows executable generation #21

Keep only Windows executable generation

Keep only Windows executable generation #21

Workflow file for this run

name: WeasyPrint’s exe generation
on: [push]
jobs:
generate:
name: ${{ matrix.os }}
os: 'windows-2019'

Check failure on line 7 in .github/workflows/exe.yml

View workflow run for this annotation

GitHub Actions / WeasyPrint’s exe generation

Invalid workflow file

The workflow is not valid. .github/workflows/exe.yml (Line: 7, Col: 5): Unexpected value 'os' .github/workflows/exe.yml (Line: 6, Col: 5): Required property is missing: runs-on
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Use absolute imports and install Pango (Windows)
run: |
C:\msys64\usr\bin\bash -lc 'pacman -S mingw-w64-x86_64-pango mingw-w64-x86_64-sed --noconfirm'
C:\msys64\mingw64\bin\sed -i 's/^from \. /from weasyprint /' weasyprint/__main__.py
C:\msys64\mingw64\bin\sed -i 's/^from \./from weasyprint\./' weasyprint/__main__.py
echo "C:\msys64\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH
rm C:\msys64\mingw64\bin\python.exe
- name: Install requirements
run: python -m pip install . pyinstaller
- name: Generate executable
run: python -m PyInstaller weasyprint/__main__.py -n weasyprint -F
- name: Test executable
run: dist/weasyprint --info
- name: Store executable
uses: actions/upload-artifact@v4
with:
name: weasyprint-${{ matrix.os }}
path: |
dist/weasyprint
dist/weasyprint.exe
README.rst
LICENSE