Skip to content

Commit 45834f7

Browse files
author
zhengchenxiao
committed
add: "ci.yml" and rkxx_u-boot
1 parent 04b2b72 commit 45834f7

File tree

17 files changed

+84
-174
lines changed

17 files changed

+84
-174
lines changed

.github/workfilows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Check out repository
14+
uses: actions/checkout@v3
15+
16+
- name: Install Dependencies
17+
run: |
18+
sudo apt update
19+
sudo add-apt-repository ppa:xmake-io/xmake -y
20+
sudo apt update
21+
sudo apt install -y nim
22+
sudo apt install -y xmake python3-pip
23+
pip install --upgrade pip
24+
pip install kconfiglib scons requests tqdm psutil
25+
26+
- name: Setup Environment and Build
27+
run: |
28+
# 使用 bash 作为 shell
29+
bash -c '
30+
source env.sh
31+
cd models
32+
xmake -vyD
33+
'
34+
shell: bash

models/xmake.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ target("image")
4545
after_build(function (target)
4646
os.exec("xmake smart-rootfs")
4747
os.exec("xmake smart-image")
48-
-- os.exec("xmake sdk")
48+
os.exec("xmake sdk")
4949
end)
5050

5151
target_end()

repo/packages/c/cpp/scripts/deploy.lua

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
--
1313
-- Copyright (C) 2023-2023 RT-Thread Development Team
1414
--
15-
-- @author xqyjlj
15+
-- @author zchenxiao
1616
-- @file deploy.lua
1717
--
1818
-- Change Logs:
1919
-- Date Author Notes
2020
-- ------------ ---------- -----------------------------------------------
21-
-- 2023-05-09 xqyjlj initial version
21+
-- 2025-01-14 zchenxiao initial version
2222
--
2323
import("rt.rt_utils")
2424

@@ -27,20 +27,4 @@ function main(rootfs, installdir, version)
2727
local filename = path.filename(filepath)
2828
rt_utils.cp_with_symlink(filepath, path.join(rootfs, "bin", filename))
2929
end
30-
31-
for _, filepath in ipairs(os.files(path.join(installdir, "usr", "bin") .. "/*")) do
32-
local filename = path.filename(filepath)
33-
rt_utils.cp_with_symlink(filepath, path.join(rootfs, "usr", "bin", filename))
34-
end
35-
36-
for _, filepath in ipairs(os.files(path.join(installdir, "usr", "sbin") .. "/*")) do
37-
local filename = path.filename(filepath)
38-
rt_utils.cp_with_symlink(filepath, path.join(rootfs, "usr", "sbin", filename))
39-
end
40-
41-
for _, filepath in ipairs(os.files(path.join(installdir, "sbin") .. "/*")) do
42-
local filename = path.filename(filepath)
43-
rt_utils.cp_with_symlink(filepath, path.join(rootfs, "sbin", filename))
44-
end
45-
4630
end

repo/packages/h/hello/scripts/deploy.lua

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
--
1313
-- Copyright (C) 2023-2023 RT-Thread Development Team
1414
--
15-
-- @author xqyjlj
15+
-- @author zchenxiao
1616
-- @file deploy.lua
1717
--
1818
-- Change Logs:
1919
-- Date Author Notes
2020
-- ------------ ---------- -----------------------------------------------
21-
-- 2023-05-09 xqyjlj initial version
21+
-- 2025-1-14 zchenxiao initial version
2222
--
2323
import("rt.rt_utils")
2424

@@ -27,20 +27,4 @@ function main(rootfs, installdir, version)
2727
local filename = path.filename(filepath)
2828
rt_utils.cp_with_symlink(filepath, path.join(rootfs, "bin", filename))
2929
end
30-
31-
for _, filepath in ipairs(os.files(path.join(installdir, "usr", "bin") .. "/*")) do
32-
local filename = path.filename(filepath)
33-
rt_utils.cp_with_symlink(filepath, path.join(rootfs, "usr", "bin", filename))
34-
end
35-
36-
for _, filepath in ipairs(os.files(path.join(installdir, "usr", "sbin") .. "/*")) do
37-
local filename = path.filename(filepath)
38-
rt_utils.cp_with_symlink(filepath, path.join(rootfs, "usr", "sbin", filename))
39-
end
40-
41-
for _, filepath in ipairs(os.files(path.join(installdir, "sbin") .. "/*")) do
42-
local filename = path.filename(filepath)
43-
rt_utils.cp_with_symlink(filepath, path.join(rootfs, "sbin", filename))
44-
end
45-
4630
end

repo/packages/p/player/scripts/deploy.lua

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,35 +12,20 @@
1212
--
1313
-- Copyright (C) 2023-2023 RT-Thread Development Team
1414
--
15-
-- @author xqyjlj
15+
-- @author zchenxiao
1616
-- @file deploy.lua
1717
--
1818
-- Change Logs:
1919
-- Date Author Notes
2020
-- ------------ ---------- -----------------------------------------------
21-
-- 2023-05-09 xqyjlj initial version
21+
-- 2025-1-14 zchenxiao initial version
2222
--
2323
import("rt.rt_utils")
2424

2525
function main(rootfs, installdir, version)
26-
for _, filepath in ipairs(os.files(path.join(installdir, "bin") .. "/*")) do
27-
local filename = path.filename(filepath)
28-
rt_utils.cp_with_symlink(filepath, path.join(rootfs, "bin", filename))
29-
end
30-
3126
for _, filepath in ipairs(os.files(path.join(installdir, "usr", "bin") .. "/*")) do
3227
local filename = path.filename(filepath)
3328
rt_utils.cp_with_symlink(filepath, path.join(rootfs, "usr", "bin", filename))
3429
end
35-
36-
for _, filepath in ipairs(os.files(path.join(installdir, "usr", "sbin") .. "/*")) do
37-
local filename = path.filename(filepath)
38-
rt_utils.cp_with_symlink(filepath, path.join(rootfs, "usr", "sbin", filename))
39-
end
40-
41-
for _, filepath in ipairs(os.files(path.join(installdir, "sbin") .. "/*")) do
42-
local filename = path.filename(filepath)
43-
rt_utils.cp_with_symlink(filepath, path.join(rootfs, "sbin", filename))
44-
end
45-
4630
end
31+
166 KB
Binary file not shown.
126 KB
Binary file not shown.
1.15 MB
Binary file not shown.

repo/packages/r/rt-thread/xmake.lua

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,8 @@ do
101101
local bsp_dir = table.concat(parts, "_")
102102
local bsp_dir = bsp_dir:lower() -- BSP小写
103103
bsp_dir = bsp_dir .. ".build"
104-
-- print(1,bsp_dir)
105104
local bsp_file = bsp_dir .. ".lua"
106-
-- print(2,bsp_file)
107105
local bsp_packages = path.join(os.scriptdir(), "bsp")
108-
-- print(3,bsp_packages)
109106
local bsp_path = path.join(bsp_packages,bsp_file)
110107
import(bsp_dir, {rootdir = bsp_packages})(toolchainsdir)
111108

repo/packages/s/shm_ping/scripts/deploy.lua

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
--
1313
-- Copyright (C) 2023-2023 RT-Thread Development Team
1414
--
15-
-- @author xqyjlj
15+
-- @author zchenxiao
1616
-- @file deploy.lua
1717
--
1818
-- Change Logs:
1919
-- Date Author Notes
2020
-- ------------ ---------- -----------------------------------------------
21-
-- 2023-05-09 xqyjlj initial version
21+
-- 2025-1-14 zchenxiao initial version
2222
--
2323
import("rt.rt_utils")
2424

@@ -27,20 +27,4 @@ function main(rootfs, installdir, version)
2727
local filename = path.filename(filepath)
2828
rt_utils.cp_with_symlink(filepath, path.join(rootfs, "bin", filename))
2929
end
30-
31-
for _, filepath in ipairs(os.files(path.join(installdir, "usr", "bin") .. "/*")) do
32-
local filename = path.filename(filepath)
33-
rt_utils.cp_with_symlink(filepath, path.join(rootfs, "usr", "bin", filename))
34-
end
35-
36-
for _, filepath in ipairs(os.files(path.join(installdir, "usr", "sbin") .. "/*")) do
37-
local filename = path.filename(filepath)
38-
rt_utils.cp_with_symlink(filepath, path.join(rootfs, "usr", "sbin", filename))
39-
end
40-
41-
for _, filepath in ipairs(os.files(path.join(installdir, "sbin") .. "/*")) do
42-
local filename = path.filename(filepath)
43-
rt_utils.cp_with_symlink(filepath, path.join(rootfs, "sbin", filename))
44-
end
45-
4630
end

0 commit comments

Comments
 (0)