DISTRHO Plugin Framework
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.

build.yml 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. name: build
  2. on:
  3. push:
  4. branches:
  5. - '*'
  6. tags:
  7. - '*'
  8. pull_request:
  9. branches:
  10. - '*'
  11. env:
  12. BUILD_TYPE: Release
  13. jobs:
  14. cmake_linux:
  15. runs-on: ubuntu-18.04
  16. steps:
  17. - uses: actions/checkout@v2
  18. with:
  19. submodules: recursive
  20. - name: Set up dependencies
  21. run: |
  22. sudo apt-get update && \
  23. sudo apt-get install \
  24. cmake \
  25. ninja-build \
  26. libjack-jackd2-dev \
  27. liblo-dev \
  28. libgl-dev \
  29. libcairo2-dev \
  30. libx11-dev
  31. - name: Create Build Environment
  32. shell: bash
  33. working-directory: ${{runner.workspace}}
  34. run: cmake -E make_directory build
  35. - name: Configure CMake
  36. shell: bash
  37. working-directory: ${{runner.workspace}}/build
  38. run: |
  39. cmake "$GITHUB_WORKSPACE" -G Ninja \
  40. -DCMAKE_BUILD_TYPE="$BUILD_TYPE"
  41. - name: Build all
  42. shell: bash
  43. working-directory: ${{runner.workspace}}/build
  44. run: cmake --build . --config "$BUILD_TYPE" -j 2
  45. - name: Display built files
  46. shell: bash
  47. working-directory: ${{runner.workspace}}/build/bin
  48. run: ls -lFR
  49. - uses: actions/upload-artifact@v2
  50. with:
  51. name: Linux artifacts
  52. path: ${{runner.workspace}}/build/bin/
  53. cmake_macos:
  54. runs-on: macos-10.15
  55. steps:
  56. - uses: actions/checkout@v2
  57. with:
  58. submodules: recursive
  59. - name: Create Build Environment
  60. shell: bash
  61. working-directory: ${{runner.workspace}}
  62. run: cmake -E make_directory build
  63. - name: Configure CMake
  64. shell: bash
  65. working-directory: ${{runner.workspace}}/build
  66. run: |
  67. cmake "$GITHUB_WORKSPACE" \
  68. -DCMAKE_BUILD_TYPE="$BUILD_TYPE"
  69. - name: Build all
  70. shell: bash
  71. working-directory: ${{runner.workspace}}/build
  72. run: cmake --build . --config "$BUILD_TYPE" -j 2
  73. - name: Display built files
  74. shell: bash
  75. working-directory: ${{runner.workspace}}/build/bin
  76. run: ls -lFR
  77. - uses: actions/upload-artifact@v2
  78. with:
  79. name: macOS artifacts
  80. path: ${{runner.workspace}}/build/bin/