forked from rdkcentral/OneWifi
-
Notifications
You must be signed in to change notification settings - Fork 0
95 lines (84 loc) · 3.11 KB
/
makefile.yml
File metadata and controls
95 lines (84 loc) · 3.11 KB
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
name: Build Check
on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
platform:
- name: "Raspberry Pi"
makefile_path: "build/linux/rpi/makefile"
- name: "Banana Pi R4 - MLO"
makefile_path: "build/linux/bpi/makefile"
fail-fast: false
name: Build for ${{ matrix.platform.name }}
steps:
- name: Checkout current repository
uses: actions/checkout@v4
with:
path: 'OneWifi'
- name: Clone unified-wifi-mesh repository
run: |
mkdir -p easymesh_project
git clone https://github.com/rdkcentral/unified-wifi-mesh.git easymesh_project/unified-wifi-mesh
mv OneWifi easymesh_project/OneWifi
- name: Cache dependencies
uses: actions/cache@v4
with:
path: /var/cache/apt
key: ${{ runner.os }}-apt-${{ hashFiles('**/apt-packages') }}
restore-keys: |
${{ runner.os }}-apt-
- name: Set up dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential \
cmake \
python3 \
python3-pip \
git \
vim \
libev-dev \
libjansson-dev \
zlib1g-dev \
libnl-3-dev \
libnl-genl-3-dev \
libnl-route-3-dev \
libavro-dev \
libcjson1 libcjson-dev \
libssl-dev \
uuid-dev \
libmysqlcppconn-dev \
libreadline-dev \
iptables \
mariadb-server \
gnupg \
file \
golang \
pkg-config \
libperl-dev \
libjson-c-dev
# Steps for ucode installation required for hostapd compilation
git clone https://github.com/jow-/ucode.git ucode
cd ucode
mkdir build && cd build
cmake -DUBUS_SUPPORT=OFF -DUCI_SUPPORT=OFF -DULOOP_SUPPORT=OFF ..
make -j$(nproc)
sudo make install
sudo ldconfig
- name: Setup OneWiFi for ${{ matrix.platform.name }}
working-directory: easymesh_project/OneWifi
run: |
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
git config --global user.name "${{ github.actor }}"
make -f ${{ matrix.platform.makefile_path }} setup
env:
GITHUB_ACTOR: ${{ github.actor }}
- name: Build OneWiFi for ${{ matrix.platform.name }}
working-directory: easymesh_project/OneWifi
run: |
make -f ${{ matrix.platform.makefile_path }} all