mirror of
https://github.com/Zxilly/UA2F.git
synced 2026-01-08 19:33:11 +00:00
ci: install libuci
This commit is contained in:
parent
94b55c6828
commit
8f34088d70
20
.github/workflows/ci.yml
vendored
20
.github/workflows/ci.yml
vendored
@ -23,6 +23,26 @@ jobs:
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y cmake libnetfilter-queue-dev libmnl-dev libnetfilter-conntrack-dev
|
||||
|
||||
- name: Build and install libubox
|
||||
run: |
|
||||
git clone https://github.com/openwrt/libubox.git
|
||||
cd libubus
|
||||
mkdir build
|
||||
cd build
|
||||
cmake .. -DBUILD_LUA=OFF -DBUILD_EXAMPLES=OFF
|
||||
make
|
||||
sudo make install
|
||||
|
||||
- name: Build and install libuci
|
||||
run: |
|
||||
git clone https://github.com/openwrt/uci.git
|
||||
cd uci
|
||||
mkdir build
|
||||
cd build
|
||||
cmake .. -DBUILD_LUA=OFF
|
||||
make
|
||||
sudo make install
|
||||
|
||||
- name: Run unit tests
|
||||
run: |
|
||||
cmake -S . -B build -DUA2F_BUILD_TESTS=ON
|
||||
|
||||
19
.github/workflows/codeql.yml
vendored
19
.github/workflows/codeql.yml
vendored
@ -38,6 +38,25 @@ jobs:
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y cmake libnetfilter-queue-dev libmnl-dev libnetfilter-conntrack-dev
|
||||
|
||||
- name: Build and install libubox
|
||||
run: |
|
||||
git clone https://github.com/openwrt/libubox.git
|
||||
cd libubus
|
||||
mkdir build
|
||||
cd build
|
||||
cmake .. -DBUILD_LUA=OFF -DBUILD_EXAMPLES=OFF
|
||||
make
|
||||
sudo make instal
|
||||
- name: Build and install libuci
|
||||
run: |
|
||||
git clone https://github.com/openwrt/uci.git
|
||||
cd uci
|
||||
mkdir build
|
||||
cd build
|
||||
cmake .. -DBUILD_LUA=OFF
|
||||
make
|
||||
sudo make install
|
||||
|
||||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@v2
|
||||
|
||||
|
||||
@ -3,6 +3,8 @@ project(UA2F LANGUAGES C CXX)
|
||||
|
||||
set(CMAKE_C_STANDARD 17)
|
||||
|
||||
OPTION(UA2F_BUILD_TESTS "Build tests" OFF)
|
||||
|
||||
find_package(Git)
|
||||
if(GIT_FOUND)
|
||||
execute_process(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user