From a9bbae0de07df18f11648ac46be60a383671786d 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 | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index c43e0f8f..82622b5e 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -170,21 +170,28 @@ 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 "C:\msys64\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH + rm C:\msys64\mingw64\bin\python.exe 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