-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (47 loc) · 1.57 KB
/
vf2-firmware.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: vf2-firmware
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '0 0 * * 0'
jobs:
build:
runs-on: ubuntu-latest
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: Create tag
run: |
tag_name="v1.0.${{ github.run_number }}"
git tag $tag_name
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git push origin $tag_name
- name: Release
uses: softprops/action-gh-release@v1
with:
name: ${{ github.sha }}
body: Automated release
tag_name: v1.0.${{ github.run_number }}
files: |
u-boot/spl/u-boot-spl.bin.normal.out
u-boot/u-boot.itb