From daed000cc3869a9b7c9bc0a7cd9c6bd7264f7454 Mon Sep 17 00:00:00 2001 From: Tudor Brindus Date: Fri, 20 Dec 2019 17:26:23 -0500 Subject: [PATCH] Add clang-format lint step to CI Also condense build-mac.yml and build.yml into one file, so we can have a single action reporting the status of the entire project. --- .github/workflows/build-mac.yml | 17 ----------------- .github/workflows/build.yml | 21 ++++++++++++++++++++- 2 files changed, 20 insertions(+), 18 deletions(-) delete mode 100644 .github/workflows/build-mac.yml diff --git a/.github/workflows/build-mac.yml b/.github/workflows/build-mac.yml deleted file mode 100644 index e9e1c08..0000000 --- a/.github/workflows/build-mac.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: build-mac -on: [push, pull_request] -jobs: - build: - 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 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 171b350..789f7d1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,7 +1,12 @@ name: build on: [push, pull_request] jobs: - build: + 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 @@ -15,3 +20,17 @@ jobs: 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