2020-11-21 18:29:20 +00:00
|
|
|
name: FunKey-OS Build
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
2020-11-22 10:33:03 +00:00
|
|
|
workflow_dispatch:
|
|
|
|
branches: [ master ]
|
2020-11-21 18:29:20 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
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
|
|
|
|
sudo apt-get -y autoremove
|
|
|
|
sudo apt-get -y clean
|
|
|
|
sudo rm -rf /var/lib/apt/lists/*
|
|
|
|
sudo sed -i 's/# \(en_US.UTF-8\)/\1/' /etc/locale.gen
|
|
|
|
sudo locale-gen --purge --lang en_US.UTF-8
|
2021-01-18 08:24:37 +00:00
|
|
|
- name: Build SDK
|
|
|
|
run: make sdk
|
2020-11-21 18:29:20 +00:00
|
|
|
- name: Build FunKey-OS
|
|
|
|
run: make
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: Upload artifacts
|
|
|
|
path: |
|
2020-11-22 09:40:00 +00:00
|
|
|
images/*
|
2020-11-21 18:29:20 +00:00
|
|
|
br.log
|