Skip to content

Commit d6f7eec

Browse files
authored
Create main.yml
1 parent 221eac5 commit d6f7eec

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/main.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
2+
name: Auto Build DshanNezhaSTU Release Linux system.
3+
4+
on:
5+
push:
6+
tags:
7+
- '*'
8+
9+
jobs:
10+
build-all-os:
11+
runs-on: debian10
12+
steps:
13+
- uses: actions/checkout@v2
14+
with:
15+
path: debian-linux
16+
17+
- name: Install depends
18+
run: sudo apt install autoconf automake autotools-dev curl python3 libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev libexpat-dev swig libssl-dev python3-distutils python3-dev debootstrap debian-ports-archive-keyring qemu-user-static qemu-system qemu-utils qemu-system-misc binfmt-support parted kpartx
19+
20+
- name: Pull & update submodules recursively
21+
working-directory: ./debian-linux
22+
run: |
23+
git submodule update --init --recursive
24+
git submodule update --recursive --remote
25+
26+
- name: build boot0_spl opensbi uboot kernel
27+
working-directory: ./debian-linux
28+
run: ls -l && bash build.sh
29+
30+
- name: Create debian rootfs
31+
working-directory: ./debian-linux
32+
run: bash setup_rootfs.sh
33+
34+
- name: Create debian sdcard.img
35+
working-directory: ./debian-linux
36+
run: bash output_images.sh
37+
38+
- name: gzip sdcard.img
39+
working-directory: ./debian-linux
40+
run: bash gzip NezhaSTU-Sdcard.img
41+
42+
- run: bash ls ${{runner.workspace}} && echo ${{runner.workspace}}
43+
44+
- name: Upload debian sdcrad images
45+
uses: actions/upload-artifact@v2
46+
with:
47+
name: "Download artifacts - debian images."
48+
path: ${{runner.workspace}}/debian-linux/debian-linux/NezhaSTU-Sdcard.img.gz

0 commit comments

Comments
 (0)