From e65ebafd915833b5e56fd6dfc8351ddf2749a99b Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Sat, 8 May 2021 18:26:46 +0200 Subject: [PATCH] Add CI builder --- .github/workflows/build.yml | 53 +++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..ce2c41d --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,53 @@ +name: build + +on: + push: + branches: + - '*' + pull_request: + branches: + - '*' + +jobs: + build_for_ubuntu: + runs-on: ubuntu-18.04 + steps: + - name: Set up dependencies + run: | + sudo apt-get update && \ + sudo apt-get install \ + libasound2-dev \ + libjack-jackd2-dev \ + libx11-dev + - uses: actions/checkout@v2 + with: + submodules: recursive + - name: Configure + shell: bash + run: | + "$GITHUB_WORKSPACE"/configure + - name: Make + shell: bash + run: | + make -j "$(nproc)" + build_for_arch: + runs-on: ubuntu-20.04 + container: + image: archlinux + steps: + - name: Set up dependencies + shell: bash + run: | + pacman -Sqyu --noconfirm + pacman -Sq --needed --noconfirm base-devel git jack2 alsa-lib libx11 + - uses: actions/checkout@v2 + with: + submodules: recursive + - name: Configure + shell: bash + run: | + "$GITHUB_WORKSPACE"/configure + - name: Make + shell: bash + run: | + make -j "$(nproc)"