ci: consolidate scripts and make sure to install fonts
This commit is contained in:
23
.github/workflows/build-documentation.yml
vendored
23
.github/workflows/build-documentation.yml
vendored
@@ -1,23 +0,0 @@
|
|||||||
name: Build documentation
|
|
||||||
on: [push, workflow_dispatch]
|
|
||||||
jobs:
|
|
||||||
build_pdf:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Set up Git repository
|
|
||||||
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: Typst
|
|
||||||
uses: yusancky/setup-typst@v2
|
|
||||||
id: setup-typst
|
|
||||||
with:
|
|
||||||
version: 'v0.11.0'
|
|
||||||
- run: typst compile modern-cv-docs.typ
|
|
||||||
- name: Upload PDF file
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: modern-cv-docs
|
|
||||||
path: modern-cv-docs.pdf
|
|
||||||
11
.github/workflows/tests.yml
vendored
11
.github/workflows/tests.yml
vendored
@@ -21,6 +21,11 @@ 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:
|
||||||
@@ -66,3 +71,9 @@ jobs:
|
|||||||
- name: Build docs
|
- name: Build docs
|
||||||
if: ${{ matrix.doc }}
|
if: ${{ matrix.doc }}
|
||||||
run: just doc
|
run: just doc
|
||||||
|
|
||||||
|
- name: Upload docs
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: manual
|
||||||
|
path: docs/manual.pdf
|
||||||
|
|||||||
Reference in New Issue
Block a user