Skip to content

readme

readme #27

Workflow file for this run

name: vf2-firmware
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '0 0 * * 0'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Pull repositories
run: |
git clone --depth 1 https://github.com/riscv-software-src/opensbi.git
git clone --depth 1 https://github.com/u-boot/u-boot.git
- name: Install dependencies
run: |
sudo apt update
sudo apt install libgnutls28-dev gcc-riscv64-linux-gnu binutils-riscv64-linux-gnu
- name: Build OpenSBI
run: |
cd opensbi
make PLATFORM=generic CROSS_COMPILE=riscv64-linux-gnu- BUILD_INFO=y FW_OPTIONS=0 -j$(nproc)
- name: Build U-Boot
run: |
cd u-boot
make CROSS_COMPILE=riscv64-linux-gnu- starfive_visionfive2_defconfig
make CROSS_COMPILE=riscv64-linux-gnu- OPENSBI=../opensbi/build/platform/generic/firmware/fw_dynamic.bin -j$(nproc)
- name: Get current build metadata
id: metadata
run: |
echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
echo "opensbi_commit=$(cd opensbi && git rev-parse HEAD)" >> $GITHUB_ENV
echo "u_boot_commit=$(cd u-boot && git rev-parse HEAD)" >> $GITHUB_ENV
- name: Release
uses: softprops/action-gh-release@v1
with:
name: ${{ steps.metadata.outputs.date }}
body: |
Automated release
- OpenSBI commit: https://github.com/riscv-software-src/opensbi/commit/${{ steps.metadata.outputs.opensbi_commit }}
- U-Boot commit: https://github.com/u-boot/u-boot/commit/${{ steps.metadata.outputs.u_boot_commit }}
tag_name: v1.0.${{ github.run_number }}
files: |
u-boot/spl/u-boot-spl.bin.normal.out
u-boot/u-boot.itb