CI: add Github Actions control file

It seems like travis-ci.org is gone, replaced by travis-ci.com, but
apparently that's not truly free anymore: it requires a registered account
plus credit card, and is only granted a one-time free credit allowance,
with the option to get this extended by explicit request. As a result
the current CI stopped working a while ago, and was broken anyway (it
failed building already, and make check on its own doesn't pass on
master anymore).

Github itself seems to offer an alternative, so let's add a control file
for that to get some basic CI back.
This builds the host and misc tools on a standard Ubuntu system, and
runs make check.

Signed-off-by: Andre Przywara <osp@andrep.de>
This commit is contained in:
Andre Przywara 2022-02-19 22:42:52 +00:00
parent e70b70eb45
commit d5f4fd1e12

21
.github/workflows/build_check.yml vendored Normal file
View File

@ -0,0 +1,21 @@
name: Build host tools
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install prerequisites
run: sudo apt-get install -y libusb-1.0-0-dev zlib1g-dev libfdt-dev
- name: make
run: make tools misc
- name: make check
run: make check