From 93142e97fa99d92840a6b9196f1a2fe8b025d3e7 Mon Sep 17 00:00:00 2001 From: Kesara Rathnayake Date: Thu, 17 Oct 2024 16:16:13 +1300 Subject: [PATCH] ci: Install fonts on windows with font-install --- .github/workflows/checks.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index c43e0f8f..82631bce 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -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