forked from USTC-CG/USTC_CG_24
-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (41 loc) · 1.22 KB
/
clang-uml.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Build clang-uml files
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: |
# Currently supported Ubuntu versions are Focal, Jammy and Mantic
sudo add-apt-repository ppa:bkryza/clang-uml
sudo apt update
sudo apt install clang-uml cmake ninja-build graphviz plantuml mesa-utils libxrandr-dev libxinerama-dev libwayland-dev libxkbcommon-dev xorg-dev freeglut3-dev -y
- name: Generate clang-uml diagrams
run: |
git submodule update --init --recursive
cd Framework2D
mkdir -p build
cd build
cmake ..
cd ..
clang-uml
cd diagrams
# iterate over ./*.puml, use plantuml to generate .png
for f in ./*.puml; do
plantuml $f
plantuml -svg $f
done
# zip the diagrams
zip -r diagrams.zip .
mv diagrams.zip ../..
- name: Upload diagrams
uses: actions/upload-artifact@v2
with:
name: diagrams
path: diagrams.zip