Skip to content

Merge pull request #217 from kubernetes-client/automated-generate-b9e… #114

Merge pull request #217 from kubernetes-client/automated-generate-b9e…

Merge pull request #217 from kubernetes-client/automated-generate-b9e… #114

Workflow file for this run

name: Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
types: [assigned, opened, synchronize, reopened]
jobs:
build-library-and-examples:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Prepare
run: |
sudo apt-get update
sudo apt-get install -y libssl-dev libcurl4-openssl-dev uncrustify valgrind
- name: Prepare libwebsockets
run: |
git clone https://github.com/warmcat/libwebsockets --depth 1 --branch v4.2-stable
cd libwebsockets
mkdir build
cd build
cmake .. -DLWS_WITHOUT_TESTAPPS=ON -DLWS_WITHOUT_TEST_SERVER=ON-DLWS_WITHOUT_TEST_SERVER_EXTPOLL=ON \
-DLWS_WITHOUT_TEST_PING=ON -DLWS_WITHOUT_TEST_CLIENT=ON -DCMAKE_C_FLAGS="-fpic"
make -j $(cat /proc/cpuinfo | grep processor | wc -l)
sudo make install
- name: Prepare libyaml
run: |
git clone https://github.com/yaml/libyaml --depth 1 --branch release/0.2.5
cd libyaml
mkdir build
cd build
cmake .. -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=ON
make -j $(cat /proc/cpuinfo | grep processor | wc -l)
sudo make install
- name: Build client library
run: |
cd kubernetes
mkdir build
cd build
cmake ..
make -j $(cat /proc/cpuinfo | grep processor | wc -l)
- name: Build authentication plugin - oidc
run: |
cd kubernetes/config/authn_plugin/plugins/oidc
mkdir build
cd build
cmake ..
make
- name: Build Debian package
run: |
cd kubernetes/build
cpack -G DEB
- name: Build examples
run: |
cd examples/
make
- name: Create k8s kind cluster
uses: helm/[email protected]
- name: Test examples
run: |
kubectl cluster-info --context kind-chart-testing
kubectl describe node
cd examples/
LD_LIBRARY_PATH=$GITHUB_WORKSPACE/kubernetes/build/:/usr/local/lib make test
- name: Valgrind memory check for examples
run: |
kubectl cluster-info --context kind-chart-testing
kubectl describe node
cd examples/
LD_LIBRARY_PATH=$GITHUB_WORKSPACE/kubernetes/build/:/usr/local/lib make memcheck