-
Notifications
You must be signed in to change notification settings - Fork 1
71 lines (58 loc) · 1.57 KB
/
build.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: image
on:
push:
branches:
- main
env:
BUILDROOT_VERSION: '2022.02.1'
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
config:
- 'habfw_raspberrypi4'
fail-fast: false
env:
BUILD_NAME: '${{ matrix.config }}-${{ github.sha }}'
CONFIG_NAME: '${{ matrix.config }}_defconfig'
steps:
- name: free space on runner
run: |
sudo rm -rf /usr/share/swift /usr/share/dotnet
- name: install dependencies
run: |
sudo apt-get update
sudo apt-get -y install bc
- name: checkout Buildroot
uses: actions/checkout@v2
with:
repository: 'buildroot/buildroot'
ref: '${{ env.BUILDROOT_VERSION }}'
path: 'buildroot'
- name: checkout external
uses: actions/checkout@v2
with:
path: 'external'
- name: configure image
run: |
make -s BR2_EXTERNAL=$GITHUB_WORKSPACE/external $CONFIG_NAME
working-directory: 'buildroot'
- name: download source
run: |
make -s source
working-directory: 'buildroot'
- name: build image
run: |
make -s all
working-directory: 'buildroot'
- name: upload sdcard image
uses: actions/upload-artifact@v2
with:
name: 'sdcard'
path: buildroot/output/images/habfw.img
- name: upload update image
uses: actions/upload-artifact@v2
with:
name: 'update'
path: buildroot/output/images/habfw-update.bin