Add workflow for building U-Boot and Linux

This commit is contained in:
f0reachARR 2020-11-04 19:39:09 +09:00
parent 3de592755b
commit 79ef99279b
2 changed files with 30 additions and 1 deletions

29
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,29 @@
name: Build
on:
push:
branches: master
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Install deps
run: sudo apt install build-essential bison flex libncurses5-dev gcc-arm-linux-gnueabi qemu-user-static
- name: Build nkbin-maker
run: make nkbin-maker
- name: Configure for U-Boot
run: make udefconfig
- name: Build U-Boot
run: make ubuild
- name: Generate NK.bin
run: make nk.bin
- name: Configure for Linux
run: make ldefconfig
- name: Build Linux
run: make lbuild

View File

@ -81,7 +81,7 @@ debian:
echo "Debootstrap is only available in Linux!"; \
exit 1; \
fi
mkdir debian
mkdir -p debian
sudo debootstrap --arch=armel --foreign buster debian/ http://localhost:65432/debian/
sudo cp /usr/bin/qemu-arm-static debian/usr/bin/
sudo cp ./tools/setup_debian.sh debian/