Skip to content

Restructure docs for new website #2582

Restructure docs for new website

Restructure docs for new website #2582

# This is a basic workflow to help you get started with Actions
name: RPI-CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ devel, release/** ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ devel, release/** ]
paths-ignore:
- 'docs/**'
- '**.md'
- '.github/actions/spelling/**'
- '.github/ISSUE_TEMPLATE/**'
env:
RPI_TOOLCHAIN_DIR: /tmp/rpi-toolchain
DICTIONARY_PATH: build-artifacts/raspberrypi/RPI/dict/RPITopologyDictionary.json
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
RPI:
runs-on: ubuntu-22.04
steps:
- name: "Checkout F´ Repository"
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- uses: ./.github/actions/setup
- name: Setup RPI Toolchain
uses: fprime-community/setup-rpi-sysroot@main
- name: F prime CI step
run: ./ci/tests/RPI.bash
- name: Copy Tests
run: mkdir -p artifact/RPI; cp -rp RPI/test RPI/build-artifacts artifact/RPI; cp -rp ci artifact
# Build Artifacts
- name: 'RPI Build Output'
uses: actions/upload-artifact@v4
with:
name: rpi-build
path: artifact
retention-days: 5
# Archive the outputs
- name: 'Archive Logs'
uses: actions/upload-artifact@v4
if: always()
with:
name: rpi-logs
path: ci-logs.tar.gz
retention-days: 5
RPI-Integration:
runs-on: self-hosted
needs: RPI
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: 'requirements.txt'
- name: "Setup environment"
run: |
python -m venv venv
. venv/bin/activate
pip install -r requirements.txt
- name: RPI Build Download
uses: actions/download-artifact@v4
with:
name: rpi-build
- name: RPI Integration Tests
run: |
chmod +x RPI/build-artifacts/raspberrypi/RPI/bin/RPI
. venv/bin/activate
/bin/bash ci/tests/RPI-Ints.bash
# Archive the outputs
- name: 'Archive Logs'
uses: actions/upload-artifact@v4
if: always()
with:
name: pi-int-logs
path: ci-logs.tar.gz
retention-days: 5
# Clean-Up moved to post script to prevent collisions