-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (44 loc) · 1.76 KB
/
br-external-riscv-aw-ol.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
name: Auto Build AW-OL D1/D1S Buildroot system.
on:
push:
tags:
- '*'
jobs:
build-all:
runs-on: ubuntu-20.04
strategy:
matrix:
config: [dongshannezhaSTU-core_defconfig, nezha-d1_defconfig ]
steps:
- uses: actions/checkout@v2
with:
path: buildroot-external-DongshanNezhaSTU
- uses: actions/checkout@v2
with:
repository: 100askTeam/buildroot_aw-ol
ref: master
path: buildroot
- name: Install buildroot dependencies
run: sudo apt install debianutils sed make binutils build-essential gcc g++ bash patch gzip bzip2 perl tar cpio unzip rsync file bc git mtools android-tools-mkbootimg
- name: Configure Buildroot
run: make -C buildroot BR2_EXTERNAL=../buildroot-external-DongshanNezhaSTU O=../output ${{ matrix.config }}
- name: Build Buildroot
run: make -C buildroot BR2_EXTERNAL=../buildroot-external-DongshanNezhaSTU O=../output
- name: Build toolchain
run: make -C buildroot BR2_EXTERNAL=../buildroot-external-DongshanNezhaSTU 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