Skip to content

Commit

Permalink
ci: add gd32vw55x soc build testing into github workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Huaqi Fang <[email protected]>
  • Loading branch information
fanghuaqi committed Dec 9, 2024
1 parent e218cbe commit 4f2cecf
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/build_sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-20.04]
soc: [evalsoc, gd32vf103]
soc: [evalsoc, gd32vf103, gd32vw55x]

steps:
- uses: actions/checkout@v3
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 4f2cecf

Please sign in to comment.