1
Fork 0

CI: build ubuntu LTS

This commit is contained in:
Nedko Arnaudov 2022-08-28 17:23:30 +03:00
parent a12ba336d2
commit d6f4704910
2 changed files with 57 additions and 0 deletions

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

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

12
GNUmakefile Normal file
View File

@ -0,0 +1,12 @@
TOP:=$(shell pwd)
.PHONY: a2jmidi
a2jmidi:
rm -rf jack2
git clone -b $(shell git symbolic-ref --short HEAD) --depth=1 --recurse-submodules --shallow-submodules https://github.com/LADI/jack2 build/jack2
cd build/jack2 && python3 ./waf configure --prefix=$(TOP)/build/destdir/usr
cd build/jack2 && python3 ./waf
cd build/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