Skip to content

Feat: set title font (#27) #87

Feat: set title font (#27)

Feat: set title font (#27) #87

Workflow file for this run

name: "Run CTyp tests"
on:
push:
branches:
- master
- test/*
tags:
- 'v*'
pull_request:
branches:
- master
jobs:
test-ubuntu:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Typst
uses: typst-community/setup-typst@v3
- name: Install tytanic
uses: taiki-e/cache-cargo-install-action@v2
with:
tool: [email protected]
- name: Install Fandol fonts
run: |
FONT_DIR=~/.local/share/fonts/opentype/fandol
mkdir -p $FONT_DIR
wget "https://mirrors.ctan.org/fonts/fandol.zip"
unzip fandol.zip -d $FONT_DIR && rm fandol.zip
fc-cache -fv
if typst fonts | grep -q Fandol; then
echo "Fandol fonts installed successfully."
else
echo "Fandol fonts installation failed."
exit 1
fi
- name: Run CTyp tests
run: tt run --no-fail-fast --use-system-fonts
- name: Archive artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: artifacts-ubuntu
path: |
tests/**/diff/*.png
tests/**/out/*.png
tests/**/ref/*.png
retention-days: 5
test-windows:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Typst
uses: typst-community/setup-typst@v3
- name: Install tytanic
uses: taiki-e/cache-cargo-install-action@v2
with:
tool: [email protected]
- name: Install Fandol fonts
run: |
$FONT_DIR = "C:\\Windows\\Fonts"
Invoke-WebRequest -Uri "https://mirrors.ctan.org/fonts/fandol.zip" -OutFile "fandol.zip"
Expand-Archive -Path "fandol.zip" -DestinationPath $FONT_DIR -Force
Remove-Item "fandol.zip"
if (typst fonts | Select-String -Pattern "Fandol") {
Write-Host "Fandol fonts installed successfully."
} else {
Write-Host "Fandol fonts installation failed."
exit 1
}
shell: pwsh
- name: Run CTyp tests
run: tt run --no-fail-fast --use-system-fonts
shell: pwsh
- name: Archive artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: artifacts-windows
path: |
tests/**/diff/*.png
tests/**/out/*.png
tests/**/ref/*.png
retention-days: 5
test-macos:
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Typst
uses: typst-community/setup-typst@v3
- name: Install tytanic
uses: taiki-e/cache-cargo-install-action@v2
with:
tool: [email protected]
- name: Install Fandol fonts
run: |
FONT_DIR=~/Library/Fonts/Fandol
mkdir -p $FONT_DIR
curl -L "https://mirrors.ctan.org/fonts/fandol.zip" -o fandol.zip
unzip fandol.zip -d $FONT_DIR && rm fandol.zip
if typst fonts | grep -q Fandol; then
echo "Fandol fonts installed successfully."
else
echo "Fandol fonts installation failed."
exit 1
fi
- name: Run CTyp tests
run: tt run --no-fail-fast --use-system-fonts
- name: Archive artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: artifacts-macos
path: |
tests/**/diff/*.png
tests/**/out/*.png
tests/**/ref/*.png
retention-days: 5