From 319f892d034b2856d87969969657bb2c99c7c99c Mon Sep 17 00:00:00 2001 From: Marius Greuel Date: Thu, 6 Jan 2022 13:48:50 +0100 Subject: [PATCH] CI Action for texinfo --- .github/workflows/build.yml | 29 +++++++++++++++++++++++++++++ .github/workflows/deploy.yml | 21 ++++++++++++++++++++- 2 files changed, 49 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f9763bf3..9f727ed2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -66,6 +66,7 @@ jobs: !**/*.o linux: + if: ${{ false }} runs-on: ubuntu-latest container: debian:11 defaults: @@ -122,6 +123,7 @@ jobs: !**/*.o freebsd-x86_64: + if: ${{ false }} runs-on: macos-10.15 steps: - uses: actions/checkout@v2 @@ -145,6 +147,7 @@ jobs: !**/*.o macos-x86_64: + if: ${{ false }} runs-on: macos-latest defaults: run: @@ -222,6 +225,7 @@ jobs: !**/*.obj mingw: + if: ${{ false }} runs-on: windows-latest defaults: run: @@ -265,3 +269,28 @@ jobs: cmake_build/ !**/*.d !**/*.obj + + docs: + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./src/doc + steps: + - uses: actions/checkout@v2 + - name: Install prerequisites + run: sudo apt-get install -y texlive texi2html + - name: Configure + run: >- + cmake + -D DEBUG_CMAKE=1 + -D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} + -B ../../cmake_build + - name: Build + run: cmake --build ../../cmake_build + - name: Archive build artifacts + if: always() + uses: actions/upload-artifact@v2 + with: + name: docs + path: | + cmake_build/ diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7c881b09..fdcad55b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -78,8 +78,27 @@ jobs: asset_name: avrdude-${{github.ref_name}}-windows-${{matrix.arch}}.zip asset_content_type: application/zip + asset-pdf: + needs: release + runs-on: ubuntu-latest + steps: + - name: Download artifact + uses: actions/download-artifact@v2 + with: + name: docs + + - name: Upload release asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + with: + upload_url: ${{needs.release.outputs.upload_url}} + asset_path: ./avrdude.pdf + asset_name: avrdude-${{github.ref_name}}.pdf + asset_content_type: application/pdf + #deploy: - # needs: [asset-msvc] + # needs: [asset-msvc, asset-pdf] # runs-on: ubuntu-latest # steps: # - name: Create package (Chocolatey)