-
-
Notifications
You must be signed in to change notification settings - Fork 686
26 lines (25 loc) · 949 Bytes
/
exe.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: WeasyPrint’s exe generation
on: [push]
jobs:
generate:
name: ${{ matrix.os }}
runs-on: 'windows-2019'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install Pango (Windows)
run: |
C:\msys64\usr\bin\bash -lc 'pacman -S mingw-w64-x86_64-pango --noconfirm'
echo "C:\msys64\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH
rm C:\msys64\mingw64\bin\python.exe
- name: Compile script (Windows)
run: |
C:\msys64\mingw64\bin\pkg-config.exe --cflags --libs pango fontconfig harfbuzz pangoft2
C:\msys64\mingw64\bin\gcc -o testfont testfont.c $(C:\msys64\mingw64\bin\pkg-config.exe --cflags --libs pango fontconfig harfbuzz pangoft2)
- name: Store executable
uses: actions/upload-artifact@v4
with:
name: testfont
path: testfont