-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (47 loc) · 1.46 KB
/
main.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
45
46
47
48
49
50
51
52
53
54
55
56
name: Build flash.bin
on:
push:
branches:
- main # Run when code is pushed to main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest # Specify the environment to run the build
steps:
# Checkout the repository code
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: true # Initialize submodules
# Initialize submodules if needed
- name: Initialize submodules
run: git submodule update --init --recursive
# Install build dependencies
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential gcc-arm-linux-gnueabi u-boot-tools \
python3-pip python3-setuptools python3-wheel
# Install pip dependencies
- name: Install pip dependencies
run: |
pip install pylibfdt
# Configure the build
- name: Configure buildroot
working-directory: Software/buildroot
run: |
BR2_EXTERNAL=../f1c100-business-card make f1c100-business-card_defconfig
# Build the flash.bin
- name: Build flash.bin
working-directory: Software/buildroot
run: |
make clean
make
# Archive the built flash.bin file
- name: Upload flash.bin
uses: actions/upload-artifact@v4
with:
name: flash.bin
path: Software/buildroot/output/images/flash.bin # Replace with actual path to flash.bin