refactor(util): add yutil library (#264)

* add yutil

* add yutil to util.h

* remove util file that same as yutil's

* replace the old header file like '#include <LCUI/util/*>' with yutil's head file

* Replace the old UTIL module associated data structures and function call code

* change timer

* Replace the old UTIL module associated data structures and function call code

* fix

* fix compilation problems(RGB to YUTIL_TEST_RGB)

* turn some useless changes back to origin

* change YUTIL_TEST_RGB back to RGB and add  lcui-util/xmake.lua include

* update github action

* update github action

* update github action

* change new yutil func name

* update xmake and change way to include yutil

* update include to <yutil.h>

* update list_for_each to for(list_each())

* fix

* add graph.h to test_*

* add #include <LCUI/graph.h>

* update yutil

* change timer func name and update submodule

* update submodules

* test strncpy

* turn useless code back origin

* fix lose RGB issue

* fix yutil charset

* update yutil

* update yutil

* add yutil_test instead of lcui-util test

* change timer func name style

Co-authored-by: 李梓豪 <yidianyiko@foxmail.com>
This commit is contained in:
YDYK
2023-04-01 22:34:33 +08:00
committed by Liu
co-authored by 李梓豪
parent 57c129b585
commit b46306ddea
137 changed files with 1359 additions and 5543 deletions
+19
View File
@@ -14,6 +14,10 @@ jobs:
- name: install tools
run: sudo apt install debhelper lcov valgrind -yy
- name: Update git submodule
run: |
git submodule update --init
- name: Build
run: |
xmake config -m coverage -y -v
@@ -23,6 +27,11 @@ jobs:
run: |
xmake run run-tests --memcheck
- name: "Run tests yutil"
run: |
xmake build yutil_test
xmake run yutil_test --memcheck
- name: Upload reports to Codecov
run: bash <(curl -s https://codecov.io/bash);
@@ -53,6 +62,11 @@ jobs:
steps:
- uses: actions/checkout@master
- uses: xmake-io/github-action-setup-xmake@v1
- name: Update git submodule
run: |
git submodule update --init
- name: Build
run: |
xmake config -y -v
@@ -61,6 +75,11 @@ jobs:
- name: "Run tests"
run: |
xmake run run-tests
- name: "Run tests yutil"
run: |
xmake build yutil_test
xmake run yutil_test
- name: Package
run: |