From 8dae82418e836518204f86fd200bfb15f391e75e Mon Sep 17 00:00:00 2001 From: ArielSAdamsNASA Date: Thu, 22 Jul 2021 13:56:49 -0500 Subject: [PATCH 1/2] Fix #310, No File Found for Documentation Workflow --- .github/workflows/build-documentation.yml | 50 +++++++++++++++++++++-- 1 file changed, 47 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-documentation.yml b/.github/workflows/build-documentation.yml index 3ba6c8f0f..b27ec9b8b 100644 --- a/.github/workflows/build-documentation.yml +++ b/.github/workflows/build-documentation.yml @@ -7,6 +7,7 @@ on: env: SIMULATION: native + REPO_NAME: ${{ github.event.repository.name }} jobs: #Checks for duplicate actions. Skips push actions if there is a matching or duplicate pull-request action. @@ -92,7 +93,7 @@ jobs: cp ./cfe/cmake/Makefile.sample Makefile cp -r ./cfe/cmake/sample_defs sample_defs - # Setup the build system + # Setup the build system - name: Make Prep run: make prep @@ -128,6 +129,28 @@ jobs: exit -1 fi + - name: Cache cFS Build Environment + id: cache-bundle + uses: actions/cache@v2 + with: + path: /home/runner/work/${{ env.REPO_NAME }}/${{ env.REPO_NAME }}/* + key: usersguide-buildnum-${{ github.run_number }} + + pdf-usersguide: + needs: build-usersguide + # Name the Job + name: PDF Users Guide + # Set the type of machine to run on + runs-on: ubuntu-18.04 + + steps: + - name: Cache cFS Build Environment + id: cache-bundle + uses: actions/cache@v2 + with: + path: /home/runner/work/${{ env.REPO_NAME }}/${{ env.REPO_NAME }}/* + key: usersguide-buildnum-${{ github.run_number }} + - name: PDF generation installs if: ${{ github.event_name == 'push' && contains(github.ref, 'main')}} run: | @@ -157,7 +180,7 @@ jobs: build-osalguide: # Name the Job needs: checks-for-duplicates - if: ${{ needs.checks-for-duplicates.outputs.should_skip != 'true' }} + if: ${{ needs.checks-for-duplicates.outputs.should_skip != 'true' }} name: Osal Guide # Set the type of machine to run on runs-on: ubuntu-18.04 @@ -212,6 +235,27 @@ jobs: cat osalguide_warnings.log exit -1 fi + + - name: Cache cFS Build Environment + id: cache-bundle + uses: actions/cache@v2 + with: + path: /home/runner/work/${{ env.REPO_NAME }}/${{ env.REPO_NAME }}/* + key: osalguide-buildnum-${{ github.run_number }} + + pdf-osalguide: + needs: build-osalguide + # Name the Job + name: PDF Osal Guide + # Set the type of machine to run on + runs-on: ubuntu-18.04 + steps: + - name: Cache cFS Build Environment + id: cache-bundle + uses: actions/cache@v2 + with: + path: /home/runner/work/${{ env.REPO_NAME }}/${{ env.REPO_NAME }}/* + key: osalguide-buildnum-${{ github.run_number }} - name: PDF generation installs if: ${{ github.event_name == 'push' && contains(github.ref, 'main')}} @@ -236,4 +280,4 @@ jobs: BRANCH: gh-pages FOLDER: deploy CLEAN: false - SINGLE_COMMIT: true + SINGLE_COMMIT: true \ No newline at end of file From 1cb05f2820afea90ffb2eba4935eab5215540c76 Mon Sep 17 00:00:00 2001 From: ArielSAdamsNASA Date: Fri, 23 Jul 2021 09:22:17 -0500 Subject: [PATCH 2/2] Fix #312, Generate Documentation In All Scenarios --- .github/workflows/build-documentation.yml | 84 +++++++++++------------ 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/.github/workflows/build-documentation.yml b/.github/workflows/build-documentation.yml index 28b2d6fe3..97da9750f 100644 --- a/.github/workflows/build-documentation.yml +++ b/.github/workflows/build-documentation.yml @@ -129,33 +129,11 @@ jobs: exit -1 fi - - name: Cache cFS Build Environment for usersguide - id: cache-bundle - uses: actions/cache@v2 - with: - path: /home/runner/work/${{ env.REPO_NAME }}/${{ env.REPO_NAME }}/build/* - key: usersguide-buildnum-${{ github.run_number }} - - deploy-usersguide: - needs: build-usersguide - # Name the Job - name: Deploy Users Guide - # Set the type of machine to run on - runs-on: ubuntu-18.04 - - steps: - name: Install Dependencies if: ${{ github.event_name == 'push' && contains(github.ref, 'main')}} run: | sudo apt-get install texlive-latex-base texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra - - name: Cache cFS Build Environment for usersguide - id: cache-bundle - uses: actions/cache@v2 - with: - path: /home/runner/work/${{ env.REPO_NAME }}/${{ env.REPO_NAME }}/build/* - key: usersguide-buildnum-${{ github.run_number }} - - name: Generate PDF if: ${{ github.event_name == 'push' && contains(github.ref, 'main')}} run: | @@ -167,6 +145,28 @@ jobs: # Could add pandoc and convert to github markdown # pandoc CFE_Users_Guide.pdf -t gfm + - name: Cache cFS Build Environment for osalguide + id: cache-usersguide + uses: actions/cache@v2 + with: + path: /home/runner/work/${{ env.REPO_NAME }}/${{ env.REPO_NAME }}/deploy/* + key: usersguide-buildnum-${{ github.run_number }} + + deploy-usersguide: + needs: build-usersguide + # Name the Job + name: Deploy Users Guide + # Set the type of machine to run on + runs-on: ubuntu-18.04 + + steps: + - name: Cache cFS Build Environment for usersguide + id: cache-usersguide + uses: actions/cache@v2 + with: + path: /home/runner/work/${{ env.REPO_NAME }}/${{ env.REPO_NAME }}/deploy/* + key: usersguide-buildnum-${{ github.run_number }} + - name: Deploy to GitHub if: ${{ github.event_name == 'push' && contains(github.ref, 'main')}} uses: JamesIves/github-pages-deploy-action@3.7.1 @@ -232,31 +232,11 @@ jobs: exit -1 fi - - name: Cache cFS Build Environment for osalguide - id: cache-bundle - uses: actions/cache@v2 - with: - path: /home/runner/work/${{ env.REPO_NAME }}/${{ env.REPO_NAME }}/build/* - key: osalguide-buildnum-${{ github.run_number }} - - deploy-osalguide: - needs: build-osalguide - name: Deploy Osal Guide - runs-on: ubuntu-18.04 - - steps: - name: Install Dependencies if: ${{ github.event_name == 'push' && contains(github.ref, 'main')}} run: | sudo apt-get install texlive-latex-base texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra - - name: Cache cFS Build Environment for osalguide - id: cache-bundle - uses: actions/cache@v2 - with: - path: /home/runner/work/${{ env.REPO_NAME }}/${{ env.REPO_NAME }}/build/* - key: osalguide-buildnum-${{ github.run_number }} - - name: Generate PDF if: ${{ github.event_name == 'push' && contains(github.ref, 'main')}} run: | @@ -267,6 +247,26 @@ jobs: # Could add pandoc and convert to github markdown # pandoc CFE_Users_Guide.pdf -t gfm + - name: Cache cFS Build Environment for osalguide + id: cache-osalguide + uses: actions/cache@v2 + with: + path: /home/runner/work/${{ env.REPO_NAME }}/${{ env.REPO_NAME }}/deploy/* + key: osalguide-buildnum-${{ github.run_number }} + + deploy-osalguide: + needs: build-osalguide + name: Deploy Osal Guide + runs-on: ubuntu-18.04 + + steps: + - name: Cache cFS Build Environment for osalguide + id: cache-osalguide + uses: actions/cache@v2 + with: + path: /home/runner/work/${{ env.REPO_NAME }}/${{ env.REPO_NAME }}/deploy/* + key: osalguide-buildnum-${{ github.run_number }} + - name: Deploy to GitHub if: ${{ github.event_name == 'push' && contains(github.ref, 'main')}} uses: JamesIves/github-pages-deploy-action@3.7.1