Browse Source

Add workflow for cmake

pull/269/head
Jean Pierre Cimalando 4 years ago
parent
commit
dd102f78c1
1 changed files with 48 additions and 0 deletions
  1. +48
    -0
      .github/workflows/build.yml

+ 48
- 0
.github/workflows/build.yml View File

@@ -0,0 +1,48 @@
name: build

on:
push:
branches:
- '*'
tags:
- '*'
pull_request:
branches:
- '*'

env:
BUILD_TYPE: Release

jobs:
build_for_linux:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up dependencies
run: |
sudo apt-get update && \
sudo apt-get install \
cmake \
ninja-build \
libjack-jackd2-dev \
liblo-dev \
libgl-dev \
libcairo2-dev \
libx11-dev
- name: Create Build Environment
shell: bash
working-directory: ${{runner.workspace}}
run: cmake -E make_directory build
- name: Configure CMake
shell: bash
working-directory: ${{runner.workspace}}/build
run: |
cmake "$GITHUB_WORKSPACE" -G Ninja \
-DCMAKE_BUILD_TYPE="$BUILD_TYPE" \
-DDPF_EXAMPLES=ON
- name: Build all
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake --build . --config "$BUILD_TYPE" -j 2

Loading…
Cancel
Save