sg204x: split pipeline #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: SOPHGO SG2044 | |
| on: | |
| push: | |
| paths: | |
| - '.github/workflows/sophgo-sg2044.yml' | |
| - '.github/workflows/.sophgo-sg204x.*' | |
| - 'sophgo/sg2044/**' | |
| jobs: | |
| build-zsbl-sg2044: | |
| name: Build ZSBL for SG2044 | |
| uses: ./.github/workflows/.sophgo-sg204x.zsbl-build.yml | |
| with: | |
| target_name: sophgo-sg2044 | |
| zsbl_repo: revyos/zsbl | |
| # Branch sg204x as of 20260227 | |
| zsbl_ref: 45054e711d81fbfa1c2167829402d26795199ae7 | |
| zsbl_defconfig: sg2044_defconfig | |
| build-opensbi-sg2044: | |
| name: Build OpenSBI for SG2044 | |
| uses: ./.github/workflows/.sophgo-sg204x.opensbi-build.yml | |
| with: | |
| target_name: sophgo-sg2044 | |
| opensbi_repo: revyos/opensbi | |
| # Branch sg204x-v1.8.1 as of 20260225 | |
| opensbi_ref: 175cafd0ca69534c5a6943e1e427150e65fbec23 | |
| build-opensbi-sg2044-rva23: | |
| name: Build OpenSBI for SG2044 with RVA23 Emu | |
| uses: ./.github/workflows/.sophgo-sg204x.opensbi-build.yml | |
| with: | |
| target_name: sophgo-sg2044-rva23 | |
| opensbi_repo: revyos/opensbi | |
| # Branch sg204x-v1.8.1-rva23 as of 20260225 | |
| opensbi_ref: 1a59a37c667dde717c26abf02c9a54c7c5d9212a | |
| build-u-root: | |
| name: Build u-root | |
| uses: ./.github/workflows/.sophgo-sg204x.u-root-build.yml | |
| with: | |
| target_name: sophgo-sg204x | |
| u_root_repo: openeuler-riscv/u-root | |
| # Branch sg204x-v0.15 as of 20260225 | |
| u_root_ref: 69595b5c67cb59b0afb9744d13625b9df6869a64 | |
| build-kernel-sg2044: | |
| name: Build Kernel for SG2044 | |
| uses: ./.github/workflows/.sophgo-sg204x.kernel-build.yml | |
| with: | |
| target_name: sophgo-sg2044 | |
| kernel_repo: revyos/linux | |
| # Branch revyos/6.18.y as of 20260226 | |
| kernel_ref: a7aa9547d2b946aee64e68ff46ad0f61196fe798 | |
| kernel_defconfig: kexec_defconfig | |
| prepare-firmware-content-sg2044-rva23: | |
| name: Prepare Firmware Contents for SG2044 with RVA23 Emu | |
| needs: | |
| - build-zsbl-sg2044 | |
| - build-opensbi-sg2044-rva23 | |
| - build-u-root | |
| - build-kernel-sg2044 | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| include: | |
| - firmware_target_name: linuxboot-sophgo-sg2044-rva23 | |
| zsbl_target_name: sophgo-sg2044 | |
| opensbi_target_name: sophgo-sg2044-rva23 | |
| u_root_target_name: sophgo-sg204x | |
| kernel_target_name: sophgo-sg2044 | |
| steps: | |
| - name: Checkout This Repo | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 1 | |
| path: u-boot-build | |
| - name: Setup Work Dirs | |
| run: | | |
| mkdir -p dist/riscv64 | |
| - name: Fetch Pre-built ZSBL | |
| uses: actions/download-artifact@v5 | |
| with: | |
| name: "zsbl-${{ matrix.zsbl_target_name }}" | |
| path: dist/riscv64 | |
| merge-multiple: true | |
| - name: Copy fsbl.bin | |
| run: | | |
| cp u-boot-build/sophgo/sg2044/blobs/fsbl.bin dist/riscv64 | |
| - name: Fetch Pre-built OpenSBI | |
| uses: actions/download-artifact@v5 | |
| with: | |
| name: "opensbi-${{ matrix.opensbi_target_name }}" | |
| path: dist/riscv64 | |
| merge-multiple: true | |
| - name: Fetch Pre-built u-root | |
| uses: actions/download-artifact@v5 | |
| with: | |
| name: "u-root-${{ matrix.u_root_target_name }}" | |
| path: dist/riscv64 | |
| merge-multiple: true | |
| - name: Fetch Pre-built Kernel | |
| uses: actions/download-artifact@v5 | |
| with: | |
| name: "kernel-${{ matrix.kernel_target_name }}" | |
| path: dist/riscv64 | |
| merge-multiple: true | |
| - name: Upload Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: "collected-${{ matrix.firmware_target_name }}" | |
| path: dist | |
| pack-sd-boot-firmware-sg2044-rva23: | |
| name: Pack SD Card Boot Image for SG2044 with RVA23 Emu | |
| needs: prepare-firmware-content-sg2044-rva23 | |
| uses: ./.github/workflows/.sophgo-sg204x.pack-sdimg.yml | |
| with: | |
| firmware_target_name: linuxboot-sophgo-sg2044-rva23 |