-
Notifications
You must be signed in to change notification settings - Fork 2
58 lines (45 loc) · 1.23 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
name: C/C++ 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
export TIDESDB_WITH_SANITIZER=OFF
rm -rf build/
cmake --debug-output -S . -B build && make -C build/
- name: Install Lua and Lua development files
run: |
sudo apt update
sudo apt install -y lua5.3 liblua5.3-dev
- name: configure cmake build
run: |
cd tidesdb-lua
cmake --debug-output -S . -B build && make -C build/
- name: cleanup resources
run: rm -rf /tmp/my_db
- name: run lua tests
run: |
cd tidesdb-lua/build
lua ../test_lua.lua