Audio plugin host https://kx.studio/carla
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.

cmake.yml 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. name: cmake
  2. on:
  3. push:
  4. branches:
  5. - '*'
  6. pull_request:
  7. branches:
  8. - '*'
  9. env:
  10. DESTDIR: ${{ github.workspace }}/build/tmp
  11. jobs:
  12. macos-11:
  13. runs-on: macos-11
  14. steps:
  15. - uses: actions/checkout@v3
  16. - name: Set up dependencies
  17. run: |
  18. brew install cmake fluid-synth liblo libmagic libsndfile pkg-config
  19. - name: configure
  20. run: cmake -S cmake -B build
  21. - name: build
  22. run: cmake --build build -j $(sysctl -n hw.logicalcpu)
  23. - name: install
  24. run: cmake --install build --verbose
  25. mingw32-cross:
  26. runs-on: ubuntu-22.04
  27. steps:
  28. - uses: actions/checkout@v3
  29. - name: Set up dependencies
  30. run: |
  31. sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
  32. sudo dpkg --add-architecture i386
  33. sudo apt-get update -qq
  34. sudo apt-get install -yqq --allow-downgrades cmake libc6:i386 libgcc-s1:i386 libstdc++6:i386 binutils-mingw-w64-i686 g++-mingw-w64-i686 mingw-w64 wine-stable:i386
  35. - name: configure
  36. env:
  37. PKG_CONFIG: false
  38. run: cmake -S cmake -B build \
  39. -DCMAKE_CROSSCOMPILING=ON \
  40. -DCMAKE_CROSSCOMPILING_EMULATOR=wine \
  41. -DCMAKE_SYSTEM_NAME=Windows \
  42. -DCMAKE_SYSTEM_PROCESSOR=i686 \
  43. -DCMAKE_C_COMPILER=i686-w64-mingw32-gcc \
  44. -DCMAKE_CXX_COMPILER=i686-w64-mingw32-g++ \
  45. -DCMAKE_RANLIB=i686-w64-mingw32-ranlib \
  46. -DCMAKE_AR=$(which i686-w64-mingw32-ar)
  47. - name: build
  48. run: cmake --build build -j $(nproc)
  49. - name: install
  50. run: cmake --install build --verbose
  51. mingw64-cross:
  52. runs-on: ubuntu-22.04
  53. steps:
  54. - uses: actions/checkout@v3
  55. - name: Set up dependencies
  56. run: |
  57. sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
  58. sudo dpkg --add-architecture i386
  59. sudo apt-get update -qq
  60. sudo apt-get install -yqq --allow-downgrades cmake libc6:i386 libgcc-s1:i386 libstdc++6:i386 binutils-mingw-w64-x86-64 g++-mingw-w64-x86-64 mingw-w64 wine-stable
  61. - name: configure
  62. env:
  63. PKG_CONFIG: false
  64. run: cmake -S cmake -B build \
  65. -DCMAKE_CROSSCOMPILING=ON \
  66. -DCMAKE_CROSSCOMPILING_EMULATOR=wine \
  67. -DCMAKE_SYSTEM_NAME=Windows \
  68. -DCMAKE_SYSTEM_PROCESSOR=x86_64 \
  69. -DCMAKE_C_COMPILER=x86_64-w64-mingw32-gcc \
  70. -DCMAKE_CXX_COMPILER=x86_64-w64-mingw32-g++ \
  71. -DCMAKE_RANLIB=x86_64-w64-mingw32-ranlib \
  72. -DCMAKE_AR=$(which x86_64-w64-mingw32-ar)
  73. - name: build
  74. run: cmake --build build -j $(nproc)
  75. - name: install
  76. run: cmake --install build --verbose
  77. ubuntu-20_04:
  78. runs-on: ubuntu-20.04
  79. steps:
  80. - uses: actions/checkout@v3
  81. - name: Set up dependencies
  82. run: |
  83. sudo apt-get update -qq
  84. sudo apt-get install -yqq cmake libfluidsynth-dev liblo-dev libmagic-dev libsndfile1-dev libx11-dev pkg-config
  85. - name: configure
  86. run: cmake -S cmake -B build
  87. - name: build
  88. run: cmake --build build -j $(nproc)
  89. - name: install
  90. run: cmake --install build --verbose
  91. ubuntu-22_04:
  92. runs-on: ubuntu-22.04
  93. steps:
  94. - uses: actions/checkout@v3
  95. - name: Set up dependencies
  96. run: |
  97. sudo apt-get update -qq
  98. sudo apt-get install -yqq cmake libfluidsynth-dev liblo-dev libmagic-dev libsndfile1-dev libx11-dev pkg-config
  99. - name: configure
  100. run: cmake -S cmake -B build
  101. - name: build
  102. run: cmake --build build -j $(nproc)
  103. - name: install
  104. run: cmake --install build --verbose
  105. windows:
  106. runs-on: windows-latest
  107. steps:
  108. - uses: actions/checkout@v3
  109. - name: configure
  110. run: cmake -S cmake -B build
  111. - name: build
  112. run: cmake --build build
  113. # FIXME fails with error
  114. # https://github.com/falkTX/Carla/actions/runs/5137608233/jobs/9245932221
  115. #- name: install
  116. #run: cmake --install build --verbose