From 6d678e2307cc1fe2decf33eb6b74338a6057108a Mon Sep 17 00:00:00 2001 From: Vittorio Parrella Date: Wed, 21 Aug 2024 19:00:02 +0200 Subject: [PATCH] generate pdf on CI --- .github/workflows/integration.yml | 42 +++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 8156acf..d318ec5 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -8,7 +8,48 @@ on: run-name: Code Integration [${{ github.event_name }}][${{ github.head_ref || github.ref_name }}] rev.${{ github.sha }} jobs: + docs-linux: + if: true + runs-on: ubuntu-latest + defaults: + run: + shell: bash + + env: + GO_VERSION: 1.20.14 + PANDOC_VERSION: 3.3 + + steps: + - uses: actions/checkout@v4 + with: + clean: true + submodules: false + + - name: Install Pandoc + uses: pandoc/actions/setup@{main} + with: + version: ${{ env.PANDOC_VERSION }} + + - name: Install TeXlive + run: sudo apt-get update && sudo apt-get install texlive-full + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: ${{ env.GO_VERSION }} + + - name: Generate PDF + run: | + cd docs/ + go generate + + - uses: actions/upload-artifact@v4 + with: + name: qpep_user_manual + path: "docs/*.pdf" + build-linux: + if: false runs-on: ubuntu-latest env: GO_VERSION: 1.20.14 @@ -118,6 +159,7 @@ jobs: path: "report/*.html" build-windows: + if: false runs-on: windows-latest env: GO_VERSION: 1.20.14