From 2e99ceacb66f14573f8f84780140970e81d6725b Mon Sep 17 00:00:00 2001 From: Paul Tsouchlos Date: Wed, 18 Sep 2024 22:44:27 -0600 Subject: [PATCH] ci: consolidate scripts and make sure to install fonts --- .github/workflows/build-documentation.yml | 23 ----------------------- .github/workflows/tests.yml | 13 ++++++++++++- 2 files changed, 12 insertions(+), 24 deletions(-) delete mode 100644 .github/workflows/build-documentation.yml diff --git a/.github/workflows/build-documentation.yml b/.github/workflows/build-documentation.yml deleted file mode 100644 index fce725f..0000000 --- a/.github/workflows/build-documentation.yml +++ /dev/null @@ -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 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 640d279..9ff6e23 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -21,6 +21,11 @@ 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: @@ -65,4 +70,10 @@ jobs: - name: Build docs if: ${{ matrix.doc }} - run: just doc \ No newline at end of file + run: just doc + + - name: Upload docs + uses: actions/upload-artifact@v4 + with: + name: manual + path: docs/manual.pdf