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 a9bbae0
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a9bbae0

Please sign in to comment.