CI: add build test for ubox
[project/ubox.git] / .github / workflows / build-ubox.yaml
1 name: Build ubox
2
3 on:
4 push:
5 pull_request:
6
7 jobs:
8 build-backports:
9 name: Build ubox
10 runs-on: ubuntu-latest
11
12 container:
13 image: alpine:latest
14
15 steps:
16 - name: Install Dependencies
17 run: |
18 apk update && apk add git cmake make gcc musl-dev pkgconfig json-c-dev linux-headers lua5.1 lua5.1-dev
19
20 - name: Install libubox
21 run: |
22 git clone --depth=1 https://git.openwrt.org/project/libubox.git
23
24 cd libubox
25 cmake -DBUILD_EXAMPLES=OFF
26 make
27 make install
28
29 - name: Install libubus
30 run: |
31 git clone --depth=1 https://git.openwrt.org/project/ubus.git
32
33 cd ubus
34 cmake -DBUILD_EXAMPLES=OFF
35 make
36 make install
37
38 - name: Install libuci
39 run: |
40 git clone --depth=1 https://git.openwrt.org/project/uci.git
41
42 cd uci
43 cmake .
44 make
45 make install
46
47 - name: Install libudebug
48 run: |
49 git clone --depth=1 https://github.com/jow-/ucode
50
51 cd ucode
52 cmake .
53 make
54 make install
55
56 - name: Install libudebug
57 run: |
58 git clone --depth=1 https://git.openwrt.org/project/udebug.git
59
60 cd udebug
61 cmake .
62 make
63 make install
64
65 - name: Checkout
66 uses: actions/checkout@v4
67
68 - name: Install ubox
69 run: |
70 cmake .
71 make
72 make install