fix: properly install fontawesome before running tests
This commit is contained in:
11
.github/workflows/tests.yml
vendored
11
.github/workflows/tests.yml
vendored
@@ -21,11 +21,6 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
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
|
- name: Probe runner package cache
|
||||||
uses: awalsh128/cache-apt-pkgs-action@v1
|
uses: awalsh128/cache-apt-pkgs-action@v1
|
||||||
with:
|
with:
|
||||||
@@ -53,6 +48,12 @@ jobs:
|
|||||||
uses: typst-community/setup-typst@v3
|
uses: typst-community/setup-typst@v3
|
||||||
with:
|
with:
|
||||||
typst-version: ${{ matrix.typst-version }}
|
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
|
- name: Install locally
|
||||||
run: just install-preview
|
run: just install-preview
|
||||||
|
|||||||
2
lib.typ
2
lib.typ
@@ -1,4 +1,4 @@
|
|||||||
#import "@preview/fontawesome:0.2.1": *
|
#import "@preview/fontawesome:0.4.0": *
|
||||||
#import "@preview/linguify:0.4.0": *
|
#import "@preview/linguify:0.4.0": *
|
||||||
|
|
||||||
// const color
|
// const color
|
||||||
|
|||||||
11
scripts/install-fontawesome
Executable file
11
scripts/install-fontawesome
Executable 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 |
Reference in New Issue
Block a user