Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #310, No File Found Documentation Workflow #315

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 47 additions & 3 deletions .github/workflows/build-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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: |
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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')}}
Expand All @@ -236,4 +280,4 @@ jobs:
BRANCH: gh-pages
FOLDER: deploy
CLEAN: false
SINGLE_COMMIT: true
SINGLE_COMMIT: true