-
Notifications
You must be signed in to change notification settings - Fork 6
102 lines (84 loc) · 2.33 KB
/
build-lib-and-doc.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: CI Basic Build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04, ubuntu-20.04]
steps:
- uses: actions/checkout@v3
- name: Install missing packages
run: sudo apt-get -y install automake libreadline-dev docbook-utils build-essential libboost-all-dev pkg-config libsigc++-2.0-dev xsltproc
- name: Set PKG_CONFIG_PATH
run: export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
- name: Create symlinks
run: sudo ln -s /usr/lib/x86_64-linux-gnu/libmpfr.so.6 /usr/lib/x86_64-linux-gnu/libmpfr.so.4
- name: Clone and compile bel_projects
run: |
git clone https://github.com/GSI-CS-CO/bel_projects.git
cd bel_projects
git checkout fallout
make
make etherbone
sudo make etherbone-install
cd ..
- name: Configure and compile saftlib and run saft-testbench
run: |
./autogen.sh
./configure
make
sudo make install
sudo ldconfig
sudo saft-testbench
sudo saft-testbench -p
- name: Clean saftlib
run: make clean
- name: Test parallel compilation and run saft-testbench and build all examples
run: |
make -j$(nproc)
sudo make install
sudo ldconfig
sudo saft-testbench
sudo saft-testbench -p
pkg-config saftlib --cflags
pkg-config saftlib --libs
cd saftbus-gen
./autogen.sh
./configure
make
sudo make install
cd ../examples/SimpleFirmware
./autogen.sh
./configure
make
cd ../../saftbus/examples/ex00
./autogen.sh
./configure
make
cd ../ex01_simple_dice
./autogen.sh
./configure
make
cd ../ex02_dice_cup/
./autogen.sh
./configure
make
cd ../../..
doxygen:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build documentation
uses: mattnotmitt/[email protected]
with:
doxyfile-path: ./Doxyfile
- name: Deploy documentation
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./html