Skip to content

Commit

Permalink
First work-flow for the documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
pat-pgt committed Sep 23, 2024
1 parent 0b4913e commit 2ec9e00
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/graphviz.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Graphviz documentation CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: environement
run: sudo apt-get install -y graphviz
- name: setup folders
run: |
mkdir build
mkdir build/pdf
mkdir build/jpeg
mkdir build/png
- name: building
run: |
cd Documentation
make DOTLANG=pdf BUILDDIR=../build/pdf/
make DOTLANG=jpeg BUILDDIR=../build/jpeg/
make DOTLANG=png BUILDDIR=../build/png/
- name: return workflow as artifacts
uses: actions/upload-artifact@v4
with:
name: MultiFrequenciesDetector-doc
path: build/*
11 changes: 11 additions & 0 deletions Documentation/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
DOT?=dot
DOTLANG?=pdf
DOTFLAGS?=
SRCDIR?=
BUILDDIR?=

doc :
$(DOT) $(DOTFLAGS) -T$(DOTLANG) $(SRCDIR)Overview.gv -o $(BUILDDIR)Overview.$(DOTLANG)

clean :
rm -f $(BUILDDIR)Overview.$(DOTLANG)

0 comments on commit 2ec9e00

Please sign in to comment.