From e80617cfedf4126bf55ef0c5b9c3acf395bf149e Mon Sep 17 00:00:00 2001 From: Konstantin Korotkov Date: Mon, 17 Oct 2022 23:20:44 +0200 Subject: [PATCH] Add CI job --- .github/CODEOWNERS | 1 + .github/workflows/netlicesning-client-ci.yml | 34 ++++++++++++++++++++ README.md | 2 +- 3 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 .github/CODEOWNERS create mode 100644 .github/workflows/netlicesning-client-ci.yml diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..45c1972 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @Labs64/labs64-dev diff --git a/.github/workflows/netlicesning-client-ci.yml b/.github/workflows/netlicesning-client-ci.yml new file mode 100644 index 0000000..9731c3d --- /dev/null +++ b/.github/workflows/netlicesning-client-ci.yml @@ -0,0 +1,34 @@ +# This workflow will build a C++ project with CMake, currently only on Ubuntu 22.04 / default GNU C++ + +name: NetLicensing Client - CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + workflow_dispatch: + +jobs: + build: + runs-on: [self-hosted] + container: ubuntu:22.04 + + steps: + - uses: actions/checkout@v2 + - name: Upgrade default packages + run: | + apt-get update + apt-get upgrade -y + - name: Install required dependencies + run: apt-get install -y git g++ cmake libcurl4-openssl-dev + - name: Build with CMake + run: | + mkdir build + cd build + cmake .. + make + - name: Run Demo App + run: | + cd build + ./netlicensing-client-demo diff --git a/README.md b/README.md index 4b46cf2..d786b7d 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ # [Labs64 NetLicensing](https://netlicensing.io) Client (C++) -[![Build Status](https://travis-ci.org/Labs64/NetLicensingClient-cpp.svg?branch=master)](https://travis-ci.org/Labs64/NetLicensingClient-cpp) +[![Build Status](https://github.com/Labs64/NetLicensingClient-cpp/actions/workflows/netlicesning-client-ci.yml/badge.svg?branch=master)](https://github.com/Labs64/NetLicensingClient-cpp/actions/workflows/netlicesning-client-ci.yml) [![Apache License 2.0](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/Labs64/NetLicensingClient-cpp/blob/master/LICENSE) [![📖 Documentation](https://img.shields.io/badge/📖%20Documentation-Wiki-AB6543.svg)](https://netlicensing.io/wiki/restful-api) [![NetLicensing @ LinkedIn](https://img.shields.io/badge/NetLicensing-0077B5.svg?logo=LinkedIn)](https://www.linkedin.com/showcase/netlicensing)