Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add multi-chips build #52

Merged
merged 1 commit into from
Sep 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 12 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
jobs:
build-bootloader:
runs-on: ubuntu-22.04
strategy:
matrix:
M_CHIP_NUM: [single, multi]
env:
toolchains_base_url: https://mirror.iscas.ac.cn/revyos/extra/tools/
toolchain_elf_file_name: elf-gcc-2022.08.08.tar.gz
Expand All @@ -20,32 +23,30 @@ jobs:
KBUILD_BUILD_HOST: riscv-builder
KDEB_COMPRESS: xz
CHIP: mango
CHIP_NUM: single
CHIP_NUM: ${{ matrix.M_CHIP_NUM }}
ELF_TOOLCHAIN_HOME: /opt/riscv/elf-gcc-2022.08.08/
LINUX_TOOLCHAIN_HOME: /opt/riscv/linux-gcc-2022.08.08/

steps:
- name: Checkout bootloader-riscv
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: bootloader-riscv

- name: Checkout zsbl
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: sophgo/zsbl
path: zsbl


- name: Checkout opensbi
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: sophgo/opensbi
path: opensbi


- name: Checkout linux-riscv
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: sophgo/linux-riscv
path: linux-riscv
Expand Down Expand Up @@ -115,14 +116,14 @@ jobs:

# Compress
pushd ~/efi/
tar -zcvf $GITHUB_WORKSPACE/sophgo-bootloader-`date "+%y%m%d%H%M%S"`.tar.gz .
tar -zcvf $GITHUB_WORKSPACE/sophgo-bootloader-${{ matrix.M_CHIP_NUM }}-`date "+%y%m%d%H%M%S"`.tar.gz .
popd
popd
popd

- name: 'Upload Build Artifact'
uses: actions/upload-artifact@v3
with:
name: sophgo-bootloader
path: sophgo-bootloader-*.tar.gz
name: sophgo-bootloader-${{ matrix.M_CHIP_NUM }}
path: sophgo-bootloader-${{ matrix.M_CHIP_NUM }}-*.tar.gz
retention-days: 10