Skip to content

Release/version 1.4.0 candidate (#758) #16

Release/version 1.4.0 candidate (#758)

Release/version 1.4.0 candidate (#758) #16

name: BACNet/SC linux tests
on:
push:
branches:
- master
pull_request:
branches:
- '*'
jobs:
job_bsc_tests_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Create Build Environment
run: |
sudo apt-get update -qq
sudo apt-get install -qq libconfig-dev
sudo apt-get install -qq libcap-dev
sudo apt-get install -qq libssl-dev
sudo apt-get install -qq libuv1-dev
git clone --branch v4.3-stable https://github.com/warmcat/libwebsockets.git
bash -c 'cd libwebsockets;mkdir build;cd build;cmake .. -DLWS_WITH_LIBUV=ON -DLWS_WITH_MINIMAL_EXAMPLES=0 -DLWS_MAX_SMP=32;make'
sudo bash -c 'cd libwebsockets;cd build;make install'
- name: Build and run bsc_event test
run: |
cd ./test/ports/linux/bsc_event
mkdir build
cd build
cmake ..
make
./test_bsc_event
- name: Build and run bvlc-sc test
run: |
cd ./test/bacnet/datalink/bvlc-sc
mkdir build
cd build
cmake ..
make
./test_bvlc-sc
- name: Build and run websockets test
run: |
cd ./test/bacnet/datalink/websockets
mkdir build
cd build
cmake ..
make
./test_websockets
- name: Build and run bsc-socket test
run: |
cd ./test/bacnet/datalink/bsc-socket
mkdir build
cd build
cmake ..
make
./test_bsc-socket
- name: Build and run hub-sc test
run: |
cd ./test/bacnet/datalink/hub-sc
mkdir build
cd build
cmake ..
make
./test_hub-sc
- name: Build and run bsc-node test
run: |
cd ./test/bacnet/datalink/bsc-node
mkdir build
cd build
cmake ..
make
./test_bsc-node
- name: Build and run bsc-datalink test
run: |
cd ./test/bacnet/datalink/bsc-datalink
mkdir build
cd build
cmake ..
make
./test_bsc-datalink