From 84bde69d5379466522a06a3259c65f0e0a393042 Mon Sep 17 00:00:00 2001 From: Nedko Arnaudov Date: Sun, 28 Aug 2022 02:02:11 +0300 Subject: [PATCH] github CI for ladish --- .github/workflows/build.yml | 22 ++++++++++++++++++++++ .github/workflows/lint.yml | 22 ++++++++++++++++++++++ .gitignore | 1 + GNUmakefile | 12 ++++++++++++ 4 files changed, 57 insertions(+) create mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/lint.yml create mode 100644 GNUmakefile diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..fbf228fe --- /dev/null +++ b/.github/workflows/build.yml @@ -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 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 00000000..909fd7f2 --- /dev/null +++ b/.github/workflows/lint.yml @@ -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 {} \; diff --git a/.gitignore b/.gitignore index 8e2e669a..36e2c304 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,4 @@ *.mo *.gmo waflib +/jack2 diff --git a/GNUmakefile b/GNUmakefile new file mode 100644 index 00000000..c4be1b59 --- /dev/null +++ b/GNUmakefile @@ -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