From 82f6a116bc880dfd13f4cb0eb9b8d3760048502c Mon Sep 17 00:00:00 2001 From: Han Gao Date: Fri, 3 Nov 2023 21:04:46 +0800 Subject: [PATCH] chore: provide img for sd & bin for spi Signed-off-by: Han Gao --- .github/workflows/build.yml | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9c93fe5c..d21cd48f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -100,30 +100,24 @@ jobs: build_rv_uroot popd - - name: Compress Artifact + - name: Pcakege firmware run: | pushd bootloader-riscv source scripts/envsetup.sh - pushd $RV_FIRMWARE_INSTALL_DIR - # Copy efi directory - mkdir -p ~/efi/riscv64 - cp $GITHUB_WORKSPACE/bootloader-riscv/firmware/fip.bin ~/efi/ - cp zsbl.bin ~/efi/ - cp fw_dynamic.bin ~/efi/riscv64 - cp riscv64_Image ~/efi/riscv64 - cp *.dtb ~/efi/riscv64 - cp initrd.img ~/efi/riscv64 - - # Compress - pushd ~/efi/ - tar -zcvf $GITHUB_WORKSPACE/sophgo-bootloader-${{ matrix.M_CHIP_NUM }}-`date "+%y%m%d%H%M%S"`.tar.gz . - popd - popd + # fix build variable in github action + source scripts/github_env.sh + + build_rv_firmware_bin + build_rv_firmware_image + + mkdir ~/firmware_artifact + cp -v $RV_FIRMWARE_INSTALL_DIR/firmware.bin $GITHUB_WORKSPACE/firmware_${CHIP_NUM}.bin + cp -v $RV_FIRMWARE_INSTALL_DIR/firmware.img $GITHUB_WORKSPACE/firmware_${CHIP_NUM}.img popd - name: 'Upload Build Artifact' uses: actions/upload-artifact@v3 with: name: sophgo-bootloader-${{ matrix.M_CHIP_NUM }} - path: sophgo-bootloader-${{ matrix.M_CHIP_NUM }}-*.tar.gz - retention-days: 10 + path: firmware_* + retention-days: 30