fix: properly install fontawesome before running tests

This commit is contained in:
Paul Tsouchlos
2024-09-19 00:07:56 -06:00
parent af6a61d6fd
commit 3338abf39d
5 changed files with 18 additions and 6 deletions

View File

@@ -21,11 +21,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Install fonts
run: |
sudo apt update
sudo apt-get install fonts-font-awesome fonts-roboto texlive-fonts-recommended texlive-fonts-extra
- name: Probe runner package cache
uses: awalsh128/cache-apt-pkgs-action@v1
with:
@@ -53,6 +48,12 @@ jobs:
uses: typst-community/setup-typst@v3
with:
typst-version: ${{ matrix.typst-version }}
- name: Install fonts
run: |
sudo apt update
sudo apt-get install fonts-font-awesome fonts-roboto
./scripts/install-fontawesome
- name: Install locally
run: just install-preview

View File

@@ -1,4 +1,4 @@
#import "@preview/fontawesome:0.2.1": *
#import "@preview/fontawesome:0.4.0": *
#import "@preview/linguify:0.4.0": *
// const color

11
scripts/install-fontawesome Executable file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -eu
wget -O ~/Downloads/fontawesome.zip https://use.fontawesome.com/releases/v6.6.0/fontawesome-free-6.6.0-desktop.zip
mkdir -p ~/Downloads/fontawesome-fonts
unzip ~/Downloads/fontawesome.zip -d ~/Downloads/fontawesome-fonts
mkdir -p ~/.fonts
find ~/Downloads/fontawesome-fonts -type f -name "*.otf" -exec cp {} ~/.fonts \;
rm ~/Downloads/fontawesome.zip
rm -rf ~/Downloads/fontawesome-fonts
fc-cache -f -v

Binary file not shown.

Before

Width:  |  Height:  |  Size: 114 KiB

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 89 KiB

After

Width:  |  Height:  |  Size: 90 KiB