|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- name: build
-
- on:
- push:
- branches:
- - '*'
- tags:
- - '*'
- pull_request:
- branches:
- - '*'
-
- env:
- BUILD_TYPE: Release
-
- jobs:
- cmake_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"
- - name: Build all
- shell: bash
- working-directory: ${{runner.workspace}}/build
- run: cmake --build . --config "$BUILD_TYPE" -j 2
- - name: Display built files
- shell: bash
- working-directory: ${{runner.workspace}}/build/bin
- run: ls -lFR
- - uses: actions/upload-artifact@v2
- with:
- name: Linux artifacts
- path: ${{runner.workspace}}/build/bin/
-
- cmake_macos:
- runs-on: macos-10.15
- steps:
- - uses: actions/checkout@v2
- with:
- submodules: recursive
- - 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" \
- -DCMAKE_BUILD_TYPE="$BUILD_TYPE"
- - name: Build all
- shell: bash
- working-directory: ${{runner.workspace}}/build
- run: cmake --build . --config "$BUILD_TYPE" -j 2
- - name: Display built files
- shell: bash
- working-directory: ${{runner.workspace}}/build/bin
- run: ls -lFR
- - uses: actions/upload-artifact@v2
- with:
- name: macOS artifacts
- path: ${{runner.workspace}}/build/bin/
|