forked from OpenIPC/firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
101 lines (77 loc) · 2.46 KB
/
toolchain.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
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
name: toolchain
on:
workflow_dispatch:
env:
TAG_NAME: latest
jobs:
toolchain:
name: Toolchain
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
# Sigmastar [I6B]
- {"platform": "ssc335"}
# Sigmastar [I6C]
- {"platform": "ssc377"}
# Sigmastar [I6E]
- {"platform": "ssc338q"}
# Ingenic [T31]
- {"platform": "t31"}
# Ingenic [T31] with GLIBC
- {"platform": "t31glibc"}
# Ingenic [T40]
- {"platform": "t40"}
# Hisilicon [HI3516CV100]
- {"platform": "hi3516cv100"}
# Hisilicon [HI3516CV200]
- {"platform": "hi3516cv200"}
# Hisilicon [HI3516CV300]
- {"platform": "hi3516cv300"}
# Hisilicon [HI3516CV500]
- {"platform": "hi3516cv500"}
# Hisilicon [HI3516EV200]
- {"platform": "hi3516ev200"}
# Hisilicon [HI3519V101]
- {"platform": "hi3519v101"}
# Hisilicon [HI3536CV100]
- {"platform": "hi3536cv100"}
# Goke [GK710X]
- {"platform": "gk7102"}
# Fullhan
- {"platform": "fh8852v100"}
- {"platform": "fh8852v200"}
# Grainmedia
- {"platform": "gm8136"}
# Novatek
- {"platform": "nt98562"}
# Rockchip
- {"platform": "rv1126"}
# Xiongmai
- {"platform": "xm510"}
- {"platform": "xm530"}
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Build toolchain
run: |
CONFIG=$(find br-ext-chip-* -name ${{matrix.platform}}_lite_defconfig)
GCC=$(make BOARD=${CONFIG} toolname).tgz
URL=https://github.com/${GITHUB_REPOSITORY}/releases/download/${TAG_NAME}/${GCC}
echo ${URL}
if ! wget -q --spider ${URL}; then
sed -i "/BR2_TOOLCHAIN_EXTERNAL.*/d" ${CONFIG}
echo BR2_PACKAGE_HOST_GDB=y >> ${CONFIG}
echo BR2_PACKAGE_AWS_WEBRTC=y >> ${CONFIG}
make BOARD=${CONFIG} br-source
make BOARD=${CONFIG} br-sdk
SDK=$(find output/images -name *_sdk-buildroot.tar.gz)
mv ${SDK} ${GCC}
echo GCC=${GCC} >> ${GITHUB_ENV}
fi
- name: Upload toolchain
uses: softprops/action-gh-release@v2
with:
tag_name: ${{env.TAG_NAME}}
files: ${{env.GCC}}