github CI for ladish

This commit is contained in:
Nedko Arnaudov 2022-08-28 02:02:11 +03:00
parent 4be0b87b4c
commit 84bde69d53
4 changed files with 57 additions and 0 deletions

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

@ -0,0 +1,22 @@
name: build
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
# ubuntu-20.04
ubuntu_20_04:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Build ladish
shell: bash
run: |
sudo apt-get install libdbus-1-dev
make

22
.github/workflows/lint.yml vendored Normal file
View File

@ -0,0 +1,22 @@
---
name: Test wscript files
on:
push:
branches: [master, develop]
pull_request:
branches: [master, develop]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install flake8 findutils
- name: Lint with flake8
run: find . -type f \( -iname wscript -or -iname ladish_control \) -exec flake8 {} \;

1
.gitignore vendored
View File

@ -18,3 +18,4 @@
*.mo
*.gmo
waflib
/jack2

12
GNUmakefile Normal file
View File

@ -0,0 +1,12 @@
TOP:=$(shell pwd)
.PHONY: ladish
ladish:
rm -rf jack2
git clone -b $(shell git symbolic-ref --short HEAD) --depth=1 --recurse-submodules --shallow-submodules https://github.com/LADI/jack2
cd jack2 && python3 ./waf configure --prefix=$(TOP)/build/destdir/usr
cd jack2 && python3 ./waf
cd jack2 && python3 ./waf install
PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:$(TOP)/build/destdir/usr/lib/pkgconfig python3 ./waf configure --prefix=$(TOP)/build/destdir/usr
python3 ./waf
python3 ./waf install