-
Notifications
You must be signed in to change notification settings - Fork 44
44 lines (35 loc) · 977 Bytes
/
fpga-image.yml
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
name: Build FPGA SD image
on:
pull_request:
paths:
- "ci-tools/fpga-image/**"
push:
branches: ["main"]
paths:
- "ci-tools/fpga-image/**"
schedule:
# 5:13 AM PST tuesday, thursday
- cron: '13 13 * * 2,4'
workflow_call:
workflow_dispatch:
jobs:
build_sd_image:
runs-on: ubuntu-22.04
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Install pre-requisites
run: |
sudo apt-get update
sudo apt-get -y install debootstrap binfmt-support qemu-user-static u-boot-tools gcc-aarch64-linux-gnu
rustup target add aarch64-unknown-linux-gnu
- name: Build SD image
run: |
cd ci-tools/fpga-image
sudo bash build.sh
- name: 'Upload image as artifact'
uses: actions/upload-artifact@v4
with:
name: caliptra-fpga-image
path: ci-tools/fpga-image/out/image.img
retention-days: 90