From 4f2cecfb178a710a0901f267c2a3033cd4b1ebbc Mon Sep 17 00:00:00 2001 From: Huaqi Fang <578567190@qq.com> Date: Mon, 9 Dec 2024 11:50:59 +0800 Subject: [PATCH] ci: add gd32vw55x soc build testing into github workflow Signed-off-by: Huaqi Fang <578567190@qq.com> --- .github/workflows/build_sdk.yaml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_sdk.yaml b/.github/workflows/build_sdk.yaml index d352049c..4d492401 100644 --- a/.github/workflows/build_sdk.yaml +++ b/.github/workflows/build_sdk.yaml @@ -36,7 +36,7 @@ jobs: strategy: matrix: os: [ubuntu-20.04] - soc: [evalsoc, gd32vf103] + soc: [evalsoc, gd32vf103, gd32vw55x] steps: - uses: actions/checkout@v3 @@ -63,9 +63,10 @@ jobs: # ERROR: Cannot uninstall 'pyserial'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall. pip3 install -q -r tools/scripts/requirements.txt mkdir -p prebuilt_tools + export TOOLVER=2024.06 cd prebuilt_tools echo "Prepare Nuclei Toolchain......" - toolzip=nuclei_riscv_newlibc_prebuilt_linux64_2024.06.tar.bz2 + toolzip=nuclei_riscv_newlibc_prebuilt_linux64_${TOOLVER}.tar.bz2 if [ ! -e $toolzip ] ; then echo "Download Nuclei toolchain now!" wget --progress=dot:giga --no-check-certificate https://www.nucleisys.com/upload/files/toochain/gcc/$toolzip @@ -74,7 +75,7 @@ jobs: fi tar -xjf $toolzip echo "Prepare Nuclei QEMU......" - toolzip=nuclei-qemu-2024.06-linux-x64.tar.gz + toolzip=nuclei-qemu-${TOOLVER}-linux-x64.tar.gz if [ ! -e $toolzip ] ; then echo "Download Nuclei qemu now!" wget --progress=dot:giga --no-check-certificate https://www.nucleisys.com/upload/files/toochain/qemu/$toolzip @@ -115,6 +116,16 @@ jobs: export LOGDIR=logs/gd32vf103v_rvstar python3 tools/scripts/nsdk_cli/nsdk_bench.py --appcfg $APPCFG --hwcfg $HWCFG --parallel="-j" --logdir $LOGDIR + - name: Build SDK for GD32VW55X SoC + if: matrix.soc == 'gd32vw55x' + run: | + echo "Setup build environment" + source setup.sh + export APPCFG=tools/scripts/nsdk_cli/configs/application.json + export HWCFG=tools/scripts/nsdk_cli/configs/gd32vw55h_eval.json + export LOGDIR=logs/gd32vw55h_eval + python3 tools/scripts/nsdk_cli/nsdk_bench.py --appcfg $APPCFG --hwcfg $HWCFG --parallel="-j" --logdir $LOGDIR + - name: Upload Build Log for ${{ matrix.soc }} uses: actions/upload-artifact@v3 with: