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.

112 lines
3.6KB

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