From 4bc836c9710adf98cbfa952b32d830a78633927e Mon Sep 17 00:00:00 2001 From: lukas Date: Thu, 30 Apr 2020 15:15:01 +0200 Subject: [PATCH] added gitlab build job improved readme --- .gitlab-ci.yml | 17 +++++++++++++++++ README.md | 22 +++++++++++++++++----- 2 files changed, 34 insertions(+), 5 deletions(-) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..1c9025a --- /dev/null +++ b/.gitlab-ci.yml @@ -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/*" \ No newline at end of file diff --git a/README.md b/README.md index 32c66b7..870b176 100644 --- a/README.md +++ b/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`