-
Notifications
You must be signed in to change notification settings - Fork 14
53 lines (40 loc) · 1.69 KB
/
br2-t113-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
name: Auto Build buildroot_100ask_t113-pro system.
on:
push:
tags:
- '*'
jobs:
build-all:
runs-on: ubuntu-18.04
strategy:
matrix:
config: [100ask_t113-pro_sdcard_core_defconfig,100ask_t113-pro_sdcard-lvgl-desktop_defconfig ]
steps:
- uses: actions/checkout@v2
with:
path: buildroot_100ask_t113-pro
- name: Install buildroot dependencies
run: sudo apt-get install -y which sed make binutils build-essential gcc g++ bash patch gzip bzip2 perl tar cpio unzip rsync file bc wget python ncurses5 bazaar cvs git mercurial rsync scp subversion android-tools-mkbootimg
- run: cd buildroot_100ask_t113-pro
- name: Clone Submodules
run: git submodule update --init --recursive && git submodule update --recursive --remote
- name: Build Buildroot
run: make -C buildroot BR2_EXTERNAL="../br2t113pro ../br2lvgl" O=./output ${{ matrix.config }}
- name: Build toolchain
run: make -C buildroot BR2_EXTERNAL="../br2t113pro ../br2lvgl" O=./output sdk
- name: Compress sdcard.img
run: gzip -9 output/images/*sdcard.img
- run: tar -czvf ${{ matrix.config }}.tar.gz output/images/*
- name: Store images
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.config }}
path: ${{ matrix.config }}.tar.gz
- run: ls -la
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
${{ matrix.config }}.tar.gz
- run: ls -la