Skip to content

Add documentation on ROS1/2 workspaces and ignoring packages, add a hack to help ROS1 workspaces to work out of the box #282

Add documentation on ROS1/2 workspaces and ignoring packages, add a hack to help ROS1 workspaces to work out of the box

Add documentation on ROS1/2 workspaces and ignoring packages, add a hack to help ROS1 workspaces to work out of the box #282

Workflow file for this run

name: ci
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
# Note: job names should be unique across all workflows (e.g. to reference them as pull request checks)!
ci-fpsdk-bookworm:
runs-on: ubuntu-latest
container:
image: ghcr.io/fixposition/fixposition-sdk:bookworm-ci
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
./docker/ci.sh
ci-fpsdk-noetic:
runs-on: ubuntu-latest
container:
image: ghcr.io/fixposition/fixposition-sdk:noetic-ci
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
./docker/ci.sh
ci-fpsdk-humble:
runs-on: ubuntu-latest
container:
image: ghcr.io/fixposition/fixposition-sdk:humble-ci
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v4
- name: CI
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
./docker/ci.sh
ci-fpsdk-jazzy:
runs-on: ubuntu-latest
container:
image: ghcr.io/fixposition/fixposition-sdk:jazzy-ci
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v4
- name: CI
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
./docker/ci.sh
ci-pages:
runs-on: ubuntu-latest
container:
image: ghcr.io/fixposition/fixposition-sdk:bookworm-ci
needs:
- ci-fpsdk-bookworm
- ci-fpsdk-noetic
- ci-fpsdk-humble
- ci-fpsdk-jazzy
permissions:
pages: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
##### Generate HTML content
- name: Build documentation
run: |
echo "github.ref: ${{ github.ref }}"
git config --global --add safe.directory ${GITHUB_WORKSPACE}
buildname=doc-release
make doc INSTALL_PREFIX=install BUILD_TYPE=Release BUILD_DIR=build/${buildname}
mkdir -p github-pages/fixposition-sdk-docs
rsync -rav build/${buildname}/doc/ github-pages/fixposition-sdk-docs/
touch github-pages/fixposition-sdk-docs/.nojekyll
echo '<a href="fixposition-sdk-docs/">Fixposition SDK documentation</a>' >> github-pages/index.html
# ...we can add more content here... e.g. actions/download-artifact from other jobs
##### Archive generated HTML as artefacts
# https://github.com/actions/upload-pages-artifact (This, not actions/upload-artifact, wich doesn't work for
# pages deployment. Both actions make the artefact show up as a job artefact.
- name: Upload pages artefact
uses: actions/upload-pages-artifact@v3
with:
path: github-pages
##### Deploy to fixposition.github.io/fixposition-sdk (only on main branch)
# https://github.com/actions/configure-pages
- name: Configure pages
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/pull/68/merge' }}
uses: actions/configure-pages@v5
# https://github.com/actions/deploy-pages
- name: Deploy pages
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/pull/68/merge' }}
uses: actions/deploy-pages@v4
with:
artifact_name: github-pages
# eof