toolchain #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 [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-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}} |