Skip to content

Commit

Permalink
ci: Install fonts on windows with font-install
Browse files Browse the repository at this point in the history
  • Loading branch information
kesara committed Oct 24, 2024
1 parent 2181f87 commit 93142e9
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,21 +170,26 @@ jobs:

- name: Install Fonts
shell: pwsh
working-directory: .github/scripts
run: |
Invoke-WebRequest -Uri 'https://github.com/ietf-tools/common/raw/main/scripts/font-install/font-install.exe' -OutFile font-install.exe
& ./font-install.exe -debug https://github.com/ietf-tools/xml2rfc-fonts/archive/refs/tags/3.22.0.zip
go install github.com/Crosse/font-install@latest
$env:GOPATH = (go env GOPATH)
$env:Path += ";$env:GOPATH\bin"
font-install https://github.com/ietf-tools/xml2rfc-fonts/archive/refs/tags/3.22.0.zip
- name: Install dependencies
- name: Install WeasyPrint dependencies
uses: msys2/setup-msys2@v2
with:
update: true
install: mingw-w64-x86_64-pango

- name: Install Python dependencies
shell: pwsh
run: |
Invoke-WebRequest -Uri 'https://github.com/tschoonj/GTK-for-Windows-Runtime-Environment-Installer/releases/download/2022-01-04/gtk3-runtime-3.24.31-2022-01-04-ts-win64.exe' -OutFile gtk.exe
& ./gtk.exe /S
choco install make
echo "Installing pip + wheel..."
python -m pip install --upgrade pip wheel
echo "Installing requirements.txt + test dependencies..."
python -m pip install -r requirements.txt tox tox-gh-actions certifi decorator dict2xml pyflakes "pypdf>=4.1.0" "weasyprint==61.2" "pydyf<0.10.0"
- name: Generate Valid Tests
run: |
make yestests || true
Expand Down

0 comments on commit 93142e9

Please sign in to comment.