-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (48 loc) · 1.25 KB
/
build.yml
File metadata and controls
49 lines (48 loc) · 1.25 KB
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
name: build
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get install -y --no-install-recommends clang-format-11 libboost-dev libboost-program-options-dev
- name: Check code style
run: |
make lint
git diff --exit-code
- name: Build and install
run: |
make
sudo make install
sudo make uninstall
debian:
runs-on: ubuntu-22.04
container: debian:bookworm
steps:
- name: Install tools
run: |
apt-get update
apt-get install -qq --no-install-recommends devscripts equivs gawk git
- uses: actions/checkout@v4
- name: Install dependencies
run: |
mk-build-deps -ir -t "apt-get -qq --no-install-recommends"
- name: Prepare changelog
run: |
git config --global --add safe.directory $PWD
debian/nightly-changelog.sh
env:
DISTRO: bookworm
- name: Build package
run: |
debuild -us -uc
mv ../*.deb ~/
- uses: actions/upload-artifact@v4
with:
name: deb
path: ~/*.deb