-
Notifications
You must be signed in to change notification settings - Fork 2
61 lines (47 loc) · 1.29 KB
/
build_and_test_lua.yml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Lua TidesDB CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout tidesdb-lua repo
uses: actions/checkout@v4
with:
repository: tidesdb/tidesdb-lua
path: tidesdb-lua
- name: Checkout tidesdb repo
uses: actions/checkout@v4
with:
repository: tidesdb/tidesdb
path: tidesdb
- name: Install libzstd-dev,liblz4-dev and libsnappy-dev
run: |
sudo apt update
sudo apt install -y libzstd-dev liblz4-dev libsnappy-dev
- name: configure cmake build for tidesdb
run: |
cd tidesdb
cmake -DTIDESDB_WITH_SANITIZER=OFF --debug-output -S . -B build && make -C build/
sudo cmake --install build
sudo ldconfig
- name: Install Lua and Lua development files
run: |
sudo apt update
sudo apt install -y lua5.3 liblua5.3-dev lua-busted
- name: configure cmake build
run: |
cd tidesdb-lua
cmake --debug-output -S . -B build && make -C build/
- name: Run Busted
run: |
cd tidesdb-lua
busted .
- name: run lua tests
run: |
cd tidesdb-lua/build
lua ../test_lua.lua