-
Notifications
You must be signed in to change notification settings - Fork 0
142 lines (139 loc) · 5.6 KB
/
ci.yaml
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
name: EC7xx
run-name: GoGoGo 🚀
on:
push:
workflow_call:
jobs:
# 最基础的example编译
EC7xx_basic:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
csdk_project:
- example
csdk_chip:
- ec718p
# - ec716s
- ec718pv
steps:
- name: 克隆 LuatOS 代码库
run: git clone --depth=1 https://github.com/openLuat/LuatOS.git
- name: 克隆 ec7xx-csdk 代码库
run: git clone --depth=1 https://github.com/openLuat/luatos-soc-2024.git
- name: 下载GCC工具链
run: |
mkdir /home/runner/toolchains
wget -q -O /home/runner/toolchains/gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2 https://github.com/wendal/xmake-docker/releases/download/dev-gcc/gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2
- name: 初始化工具链
run: |
sudo add-apt-repository ppa:xmake-io/xmake -y
sudo apt update -y
sudo apt-get update -y && sudo apt-get install -y gcc make g++ wget curl p7zip-full
sudo dpkg --add-architecture i386 && sudo apt update
sudo apt-get install -y lib32z1 libc6:i386 libgcc1:i386 libstdc++5:i386 libstdc++6:i386
sudo apt-get install -y xmake
xmake update
# curl -fsSL https://xmake.io/shget.text | bash -s v2.8.9
xmake g --pkg_searchdirs=/home/runner/toolchains
- name: 构建指定项目
run: |
cd luatos-soc-2024/project/example
xmake f --chip_target=${{matrix.csdk_project}} -y
xmake -y --root
# # LuatOS固件编译
# EC718P_LuatOS:
# runs-on: ubuntu-latest
# needs: "EC7xx_basic"
# strategy:
# fail-fast: false
# matrix:
# csdk_project:
# - luatos
# csdk_chip:
# - ec718p
# - ec718pv
# steps:
# - name: 克隆 LuatOS 代码库
# run: git clone --depth=1 https://github.com/openLuat/LuatOS.git
# - name: 克隆 ec7xx-csdk 代码库
# run: git clone --depth=1 https://github.com/openLuat/luatos-soc-2024.git
# - name: 下载GCC工具链
# run: |
# mkdir /home/runner/toolchains
# wget -q -O /home/runner/toolchains/gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2 https://github.com/wendal/xmake-docker/releases/download/dev-gcc/gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2
# - name: 初始化工具链
# run: |
# sudo add-apt-repository ppa:xmake-io/xmake -y
# sudo apt update -y
# sudo apt-get update -y && sudo apt-get install -y gcc make g++ wget curl p7zip-full
# sudo dpkg --add-architecture i386 && sudo apt update
# sudo apt-get install -y lib32z1 libc6:i386 libgcc1:i386 libstdc++5:i386 libstdc++6:i386
# xmake update
# # curl -fsSL https://xmake.io/shget.text | bash -s v2.8.9
# xmake g --pkg_searchdirs=/home/runner/toolchains
# - name: 构建指定项目
# run: |
# cd luatos-soc-2024/project/luatos
# xmake -y --root
# EC7xx:
# runs-on: ubuntu-latest
# needs: "EC7xx_basic"
# strategy:
# fail-fast: false
# matrix:
# csdk_project:
# - example_adc
# - example_audio
# - example_camera
# - example_cjson
# - example_crypto
# - example_flash
# - example_fs
# - example_fskv
# - example_gpio
# - example_i2c
# - example_iconv
# - example_luatos_mqtt
# - example_luatos_socket
# - example_mobile
# - example_pm
# - example_rndis
# - example_rtc
# - example_uart
# - example_lbsLoc
# - example_gnss
# - example_lcd
# - example_gnss
# - example_linksdk
# - example_otp
# csdk_chip:
# - ec718p
# - ec716s
# - ec718pv
# steps:
# - name: 克隆 LuatOS 代码库
# run: git clone --depth=1 https://github.com/openLuat/LuatOS.git
# - name: 克隆 ec7xx-csdk 代码库
# run: git clone --depth=1 https://github.com/openLuat/luatos-soc-2024.git
# - name: 下载GCC工具链
# run: |
# mkdir /home/runner/toolchains
# wget -q -O /home/runner/toolchains/gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2 https://github.com/wendal/xmake-docker/releases/download/dev-gcc/gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2
# - name: 初始化工具链
# run: |
# sudo add-apt-repository ppa:xmake-io/xmake -y
# sudo apt update -y
# sudo apt-get update -y && sudo apt-get install -y gcc make g++ wget curl p7zip-full
# sudo dpkg --add-architecture i386 && sudo apt update
# sudo apt-get install -y lib32z1 libc6:i386 libgcc1:i386 libstdc++5:i386 libstdc++6:i386
# xmake update
# # curl -fsSL https://xmake.io/shget.text | bash -s v2.8.9
# xmake g --pkg_searchdirs=/home/runner/toolchains
# - name: 构建指定项目
# if: ${{ ! ( (matrix.csdk_project == 'example_audio' || matrix.csdk_project == 'example_camera') && matrix.csdk_chip == 'ec716s' ) }}
# run: |
# export GCC_PATH=`pwd`/tools/gcc-arm-none-eabi-10-2020-q4-major
# cd luatos-soc-2024
# xmake f --chip_target=$CHIP_TARGET --lspd_mode=$LSPD_MODE
# xmake -y --root