99 branch :
1010 type : string
1111 default : opencca/main
12- branch-tfa :
13- type : string
14- default : " "
15- branch-rmm :
16- type : string
17- default : " "
18- branch-uboot :
19- type : string
20- default : " "
21- debug :
22- type : bool
23- default : true
24- log-level :
25- default : 50
26- type : integer
2712
2813concurrency :
2914 group : ${{ github.workflow }}-${{ inputs.branch }}
@@ -32,22 +17,58 @@ concurrency:
3217env :
3318 CI_REPO : https://github.com/opencca/ci-scripts
3419 CI_RUN_SCRIPT : run-ci.sh
35- CI_BUILD_SCRIPT : release -firmware.sh
20+ CI_BUILD_SCRIPT : build -firmware.sh
3621
3722jobs :
3823 build-and-push :
3924 runs-on : self-hosted
4025 steps :
26+ - name : Checkout uboot
27+ uses : actions/checkout@v4
28+ with :
29+ repository : opencca/u-boot
30+ ref : ${{ inputs.branch }}
31+ submodules : recursive
32+ clean : true
33+ path : u-boot
34+
35+ - name : Checkout tfa
36+ uses : actions/checkout@v4
37+ with :
38+ repository : opencca/arm-trusted-firmware
39+ ref : ${{ inputs.branch }}
40+ submodules : recursive
41+ clean : true
42+ path : trusted-firmware-a
43+
44+ - name : Checkout rmm
45+ uses : actions/checkout@v4
46+ with :
47+ repository : opencca/tf-rmm
48+ ref : ${{ inputs.branch }}
49+ submodules : recursive
50+ clean : true
51+ path : tf-rmm
52+
4153 - name : Run build script
42- env :
43- BRANCH_NAME : ${{ inputs.branch }}
44- BRANCH_TFA : ${{ inputs.branch-tfa }}
45- BRANCH_RMM : ${{ inputs.branch-rmm }}
46- BRANCH_UBOOT : ${{ inputs.branch-uboot }}
47- DEBUG_FLAG : ${{ inputs.debug }}
48- LOG_LEVEL : ${{ inputs.log-level }}
4954 run : |
5055 rm -rf .ci || true
5156 git clone --depth 1 "$CI_REPO" .ci
5257 cd .ci
5358 ./"$CI_RUN_SCRIPT" "$GITHUB_WORKSPACE" ./"$CI_BUILD_SCRIPT"
59+
60+
61+ - name : Upload snapshot release
62+ uses : opencca/ci-scripts/.github/release@opencca/main
63+ with :
64+ project : firmware
65+ branch : ${{ inputs.branch }}
66+ artifact : |
67+ snapshot/u-boot-rockchip.bin
68+ snapshot/u-boot-rockchip-spi.bin
69+ snapshot/idbloader.img
70+ snapshot/u-boot.itb
71+ snapshot/bl31.elf
72+ snapshot/tf-rmm.elf
73+ snapshot/rk3588_ddr_*.bin
74+ token : ${{ secrets.RELEASES_REPO_TOKEN }}
0 commit comments