forked from nanomq/nanomq
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (38 loc) · 1010 Bytes
/
Copy pathfunction_test.yml
File metadata and controls
43 lines (38 loc) · 1010 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Function test
on:
push:
pull_request:
release:
types:
- published
jobs:
function_test:
runs-on: ubuntu-22.04
steps:
- name: install lib
run: |
sudo apt update
sudo apt install -y cmake ninja-build rpm pip python3-pip mosquitto-clients netcat
pip install Jinja2
pip install paho-mqtt
pip install websockets
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- run: git submodule update --init --recursive
- name: build
run: |
set -eu
git clone https://github.com/Mbed-TLS/mbedtls.git && cd mbedtls
git reset --hard 919ff15ec
mkdir build && cd build
cmake ..
cmake --build .
sudo make install
cd ../..
mkdir -p build
cd build
cmake -DDEBUG=ON -DASAN=ON -DNNG_ENABLE_TLS=ON -DNOLOG=OFF ..
make
sudo make install
- name: test
run: |
python3 .github/scripts/test.py