Skip to content

Commit

Permalink
chore: provide img for sd & bin for spi
Browse files Browse the repository at this point in the history
Signed-off-by: Han Gao <[email protected]>
  • Loading branch information
RevySR authored and xingxg2022 committed Nov 7, 2023
1 parent 92390b3 commit 82f6a11
Showing 1 changed file with 12 additions and 18 deletions.
30 changes: 12 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 82f6a11

Please sign in to comment.