-
-
Notifications
You must be signed in to change notification settings - Fork 302
71 lines (58 loc) · 1.65 KB
/
linux.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
name: compile apfree-wifidog in ubuntu system
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout changes
uses: actions/checkout@v2
- name: install other depend lib
run: |
sudo apt-get update -y
sudo apt-get install -y libjson-c-dev
sudo apt-get install -y libevent-dev
sudo apt-get install -y lua5.1 lua5.1-dev
sudo apt-get install -y nftables
sudo apt-get install -y libnetfilter-queue-dev
- name: install libubox
run: |
git clone https://github.com/git-openwrt-org-mirror/libubox.git
cd libubox
mkdir build && cd build && cmake ..
sudo make install
- name: install uci
run: |
git clone https://github.com/git-openwrt-org-mirror/uci.git
cd uci
mkdir build && cd build && cmake ..
sudo make install
- name: compile apfree-wifidog fw4
run: |
mkdir build
cd build
cmake ..
make
ldd src/wifidogx
ldd src/wdctlx
- name: install iptables lib for apfree wifidog
run: |
git clone https://github.com/liudf0716/iptables-apfree-wifidog.git
cd iptables-apfree-wifidog
./autogen.sh
./configure --disable-nftables
make
sudo make install
- name: compile apfree-wifidog fw3
run: |
cd build
rm -rf *
cmake -DAW_FW3=ON ..
make