Skip to content

fix: Trying to fix doxygen docu workflow #7

fix: Trying to fix doxygen docu workflow

fix: Trying to fix doxygen docu workflow #7

Workflow file for this run

name: Build the libfranka Debian Package
on:
push:
tags:
- '*'
workflow_dispatch:
jobs:
build-deb:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: 'recursive'
fetch-depth: 0
- name: Build Docker image
uses: docker/build-push-action@v4
with:
context: .ci/
file: .ci/Dockerfile.focal
tags: libfranka-build:latest
push: false
load: true
- name: Build and package in container
uses: addnab/docker-run-action@v3
with:
image: libfranka-build:latest
options: -v ${{ github.workspace }}:/workspaces
run: |
cd /workspaces
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=OFF -B build -S .
cmake --build build -- -j$(nproc)
cd build
cpack -G DEB
# Upload to artifacts for manual workflow runs
- name: Upload Debian package (manual runs)
if: github.event_name == 'workflow_dispatch'
uses: actions/upload-artifact@v4
with:
name: libfranka-deb
path: build/*.deb
# Create release for tag pushes
- name: Create GitHub Release and Upload Assets
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
files: build/*.deb
generate_release_notes: true
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}