You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- 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/
|