-
Notifications
You must be signed in to change notification settings - Fork 27
37 lines (36 loc) · 1.04 KB
/
ci.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
name: CI Build
on:
pull_request:
push:
branches:
- master
workflow_dispatch:
jobs:
build-ubuntu-amd64:
name: build-ubuntu-amd64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check out libmodule
uses: actions/checkout@v3
with:
repository: fededp/libmodule
ref: '5.0.1'
path: libmodule
- name: Install deps
run: |
sudo apt update
sudo apt install -y --no-install-recommends build-essential pkg-config cmake libsystemd-dev libpopt-dev libconfig-dev libgsl-dev libdbus-1-dev
- name: Install libmodule
run: |
cd libmodule
mkdir build && cd build
cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE="Release" ..
make
sudo make install
- name: Configure project
run: |
mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Debug ..
- name: Build
run: |
cd build && make