added gitlab build job

improved readme
This commit is contained in:
lukas 2020-04-30 15:15:01 +02:00
parent 7f83203dfd
commit 4bc836c971
2 changed files with 34 additions and 5 deletions

17
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,17 @@
image: luki42/dynuiprefresher_build:latest
stages:
- build
build:
stage: build
script:
- cmake -S . -B build
- cd build
- make
- make package
artifacts:
paths:
- "build/bin/*"
- "build/packages/*"

View File

@ -10,16 +10,28 @@ A lightweight C++ application to setup a service for refreshing a dynamic IP to
### install build dependencies
`libcurl`
`libcurl-devel`
`libconfig`
`libconfig-devel`
Debian:
#### Debian:
`apt install libcurl4-openssl-dev`
Fedora:
#### Fedora:
`dnf install libcurl-devel libconfig-devel`
#### Alpine Linux:
Compiler dependencies:
`apk add make cmake g++`
Lib dependencies:
`apk add libcurl curl-dev libconfig libconfig-dev`
Packaging dependencies:
`apk add dpkg rpm`
#### dependencies for package build
`dpkg` --> debian/ubuntu package
@ -38,7 +50,7 @@ cd into downloaded files and Generate makefiles:
`make install`
[root] or create Linux packages
(optional) create Linux packages
`make package`