Skip to content

Cleanup / formatting #27

Cleanup / formatting

Cleanup / formatting #27

# 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@v3
- 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 libboost-all-dev
- name: Build with CMake
run: |
mkdir build
cd build
cmake .. -DBUILD_TESTS=yes
make
- name: Run tests
run: |
cd tests
./run_tests
- name: Run Demo App
run: |
cd build
./netlicensing-client-demo