summaryrefslogtreecommitdiff
path: root/.github/workflows/build.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r--.github/workflows/build.yml36
1 files changed, 36 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..49398d0
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,36 @@
+name: build
+on: [push, pull_request]
+jobs:
+ lint:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v1
+ - uses: DoozyX/clang-format-lint-action@v0.5
+ build-linux:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v1
+ - name: Install dependencies
+ run: |
+ sudo apt-get update
+ sudo apt-get install libfftw3-dev libasound2-dev libncursesw5-dev libpulse-dev libtool automake libiniparser-dev portaudio19-dev libsndio-dev
+ - name: Generate configure
+ run: ./autogen.sh
+ - name: Run ./configure
+ run: CPPFLAGS=-I/usr/include/iniparser ./configure
+ - name: Run make
+ run: make
+ build-macos:
+ runs-on: macos-latest
+ steps:
+ - uses: actions/checkout@v1
+ - name: Install dependencies
+ run: |
+ brew install fftw ncurses libtool automake portaudio iniparser
+ ln -s /usr/local/bin/glibtoolize /usr/local/bin/libtoolize
+ - name: Generate configure
+ run: ./autogen.sh
+ - name: Run ./configure
+ run: LDFLAGS="-L/usr/local/opt/ncurses/lib" CPPFLAGS="-I/usr/local/opt/ncurses/include" ./configure
+ - name: Run make
+ run: make