forked from doxygen/doxygen
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (40 loc) · 1.38 KB
/
build-and-test.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
name: Build Debian Package
on:
push:
branches:
- main
jobs:
build-package:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Install build dependencies
run: sudo apt-get build-dep doxygen
- name: Build Doxygen from source
run: |
cd ${{ github.workspace }}
./configure
make
- name: Create package directory
run: mkdir -p ${{ github.workspace }}/my-doxygen-package/usr/bin/
- name: Copy binaries to package directory
run: |
cp ${{ github.workspace }}/bin/doxygen ${{ github.workspace }}/my-doxygen-package/usr/bin/
cp ${{ github.workspace }}/bin/doxyindexer ${{ github.workspace }}/my-doxygen-package/usr/bin/
- name: Create control file
run: |
cat <<EOF > ${{ github.workspace }}/my-doxygen-package/DEBIAN/control
Package: my-doxygen-package
Version: 1.0
Architecture: all
Maintainer: John Doe <[email protected]>
Description: My Doxygen package
EOF
- name: Build package
run: sudo dpkg-deb --build ${{ github.workspace }}/my-doxygen-package/
- name: Upload package as release artifact
uses: actions/upload-artifact@v2
with:
name: my-doxygen-package_1.0_all.deb
path: ${{ github.workspace }}/my-doxygen-package/my-doxygen-package_1.0_all.deb