added gitlab build job
improved readme
This commit is contained in:
parent
7f83203dfd
commit
4bc836c971
17
.gitlab-ci.yml
Normal file
17
.gitlab-ci.yml
Normal 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/*"
|
22
README.md
22
README.md
@ -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`
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user