Skip to content

Commit 358970e

Browse files
authored
Create build.yml
1 parent 033843a commit 358970e

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/build.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: FunKey-OS Build
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-20.04
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Install dependencies
17+
run: |
18+
sudo apt-get update
19+
sudo apt-get install -y -q --no-install-recommends make binutils build-essential gcc g++ patch bzip2 perl cpio unzip rsync file bc wget python python-dev xxd libncurses5-dev cvs git mercurial rsync liblscp-dev subversion python3 python3-dev python3-distutils python3-setuptools ca-certificates openssh-client expect locales sudo procps
20+
sudo apt-get -y autoremove
21+
sudo apt-get -y clean
22+
sudo rm -rf /var/lib/apt/lists/*
23+
sudo sed -i 's/# \(en_US.UTF-8\)/\1/' /etc/locale.gen
24+
sudo locale-gen --purge --lang en_US.UTF-8
25+
- name: Build FunKey-OS
26+
run: make
27+
- uses: actions/upload-artifact@v2
28+
with:
29+
name: Upload artifacts
30+
path: |
31+
images/sdcard.img
32+
images/FunKey-rootfs-*.fwu
33+
br.log

0 commit comments

Comments
 (0)