-
Notifications
You must be signed in to change notification settings - Fork 63
125 lines (123 loc) · 3.07 KB
/
ci.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
name: ci
on:
push:
branches:
- master
pull_request:
jobs:
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Windows Dependencies
run: pip install meson ninja
- name: Building Sdb
run: meson build && ninja -C build
- name: Pub
uses: actions/upload-artifact@v3
with:
path: build/*.exe
build-cxx:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Building Sdb
run: make xxx
- name: Testing gperf
run: make -C test
build-python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Building Sdb
run: export CFLAGS=-O0 ; make
- name: Building python bindings
run: make -C bindings/python
- name: Testing python bindings
run: cd bindings/python && python3 test.py
test-asan:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v3
- name: install gperf
run: sudo apt install gperf
- name: building sdb
run: make asan
- name: running tests
run: make asantest
- name: testing gperf
run: make -C test/gperf
test-leaks:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v3
- name: install gperf
run: sudo apt install gperf
- name: building sdb
run: make asan
- name: running tests
run: make leaktest
- name: testing gperf
run: make -C test/gperf
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Meson Sdb
run: |
pip install meson ninja
meson b && ninja -C b
- name: Building Sdb
run: export CFLAGS="-Werror -Wall" && make -j4
- name: Install gperf
run: sudo apt install gperf
- name: Packaging
run: make -C dist/debian
- name: Running tests
run: make test
- name: Testing gperf
run: make -C test/gperf
- name: Pub
uses: actions/upload-artifact@v3
with:
path: dist/debian/sdb/*.deb
build-heap:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v3
- name: Building Sdb
run: export CFLAGS="-DUSE_SDB_HEAP=1 -Werror -Wall" && make -j4
- name: Running tests
run: make test
- name: Testing gperf
run: make -C test/gperf
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Building Sdb
run: make -j4 && cd ..
- name: Packaging
run: cd dist/macos && make && cd ../../..
- name: Running tests
run: make test
- name: Pub
uses: actions/upload-artifact@v3
with:
path: dist/macos/*.pkg
build-cydia:
runs-on: macos-latest
steps:
- name: Cloning Repo
run: git clone --depth=1 https://github.com/radareorg/sdb
- name: Building Sdb
run: cd sdb && make ios && cd ..
- name: Packaging
run: cd sdb/dist/cydia && make && cd ../../..
- name: Pub
uses: actions/upload-artifact@v3
with:
path: sdb/dist/cydia/*/*.deb