|
|
@@ -2,87 +2,66 @@ name: cmake |
|
|
|
|
|
|
|
on: |
|
|
|
push: |
|
|
|
branches: |
|
|
|
- '*' |
|
|
|
tags: |
|
|
|
- '*' |
|
|
|
pull_request: |
|
|
|
branches: |
|
|
|
- '*' |
|
|
|
|
|
|
|
env: |
|
|
|
BUILD_TYPE: Release |
|
|
|
|
|
|
|
jobs: |
|
|
|
cmake_linux: |
|
|
|
runs-on: ubuntu-18.04 |
|
|
|
ubuntu-20-04: |
|
|
|
strategy: |
|
|
|
matrix: |
|
|
|
target: [linux-arm64, linux-armhf, linux-i686, linux-riscv64, linux-x86_64, win32, win64, pluginval] |
|
|
|
runs-on: ubuntu-20.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 \ |
|
|
|
libdbus-1-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/ |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
with: |
|
|
|
submodules: recursive |
|
|
|
- uses: distrho/dpf-cmake-action@v1 |
|
|
|
with: |
|
|
|
dpf_path: . |
|
|
|
target: ${{ matrix.target }} |
|
|
|
|
|
|
|
ubuntu-22-04: |
|
|
|
strategy: |
|
|
|
matrix: |
|
|
|
target: [linux-arm64, linux-armhf, linux-i686, linux-riscv64, linux-x86_64, win32, win64, pluginval] |
|
|
|
runs-on: ubuntu-22.04 |
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
with: |
|
|
|
submodules: recursive |
|
|
|
- uses: distrho/dpf-cmake-action@v1 |
|
|
|
with: |
|
|
|
dpf_path: . |
|
|
|
target: ${{ matrix.target }} |
|
|
|
|
|
|
|
cmake_macos: |
|
|
|
macos-11: |
|
|
|
strategy: |
|
|
|
matrix: |
|
|
|
target: [macos-intel, macos-universal] |
|
|
|
runs-on: macos-11 |
|
|
|
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/ |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
with: |
|
|
|
submodules: recursive |
|
|
|
- uses: distrho/dpf-cmake-action@v1 |
|
|
|
with: |
|
|
|
dpf_path: . |
|
|
|
target: ${{ matrix.target }} |
|
|
|
|
|
|
|
macos-12: |
|
|
|
strategy: |
|
|
|
matrix: |
|
|
|
target: [macos-intel, macos-universal] |
|
|
|
runs-on: macos-12 |
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
with: |
|
|
|
submodules: recursive |
|
|
|
- uses: distrho/dpf-cmake-action@v1 |
|
|
|
with: |
|
|
|
dpf_path: . |
|
|
|
target: ${{ matrix.target }} |
|
|
|
|
|
|
|
cmake_win32: |
|
|
|
runs-on: windows-2019 |
|
|
|