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.

157 lines
5.9KB

  1. name: build
  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. WITH_LTO: false
  13. jobs:
  14. macos-11:
  15. runs-on: macos-11
  16. steps:
  17. - uses: actions/checkout@v2
  18. - name: Set up dependencies
  19. run: |
  20. brew install fluid-synth liblo libmagic libsndfile pkg-config pyqt@5 qt@5 sdl2
  21. - name: make features
  22. run: make features
  23. - name: make
  24. run: make -j $(sysctl -n hw.logicalcpu)
  25. #msys2-i686:
  26. #runs-on: windows-latest
  27. #defaults:
  28. #run:
  29. #shell: msys2 {0}
  30. #steps:
  31. #- uses: actions/checkout@v2
  32. #- uses: msys2/setup-msys2@v2
  33. #with:
  34. #msystem: mingw32
  35. #install: base-devel make mingw-w64-i686-toolchain mingw-w64-i686-fluidsynth mingw-w64-i686-liblo mingw-w64-i686-libsndfile mingw-w64-i686-pkg-config mingw-w64-i686-python-pyqt5
  36. #- name: make features
  37. #run: make features
  38. #- name: make
  39. #run: make -j $(nproc)
  40. #msys2-x86_64:
  41. #runs-on: windows-latest
  42. #defaults:
  43. #run:
  44. #shell: msys2 {0}
  45. #steps:
  46. #- uses: actions/checkout@v2
  47. #- uses: msys2/setup-msys2@v2
  48. #with:
  49. #msystem: mingw64
  50. #install: base-devel make mingw-w64-x86_64-toolchain mingw-w64-x86_64-fluidsynth mingw-w64-x86_64-liblo mingw-w64-x86_64-libsndfile mingw-w64-x86_64-pkg-config mingw-w64-x86_64-python-pyqt5
  51. #- name: make features
  52. #run: make features
  53. #- name: make
  54. #run: make -j $(nproc)
  55. ubuntu-18_04:
  56. runs-on: ubuntu-18.04
  57. steps:
  58. - uses: actions/checkout@v2
  59. - name: Set up dependencies
  60. run: |
  61. sudo dpkg --add-architecture i386
  62. sudo apt-get update -qq
  63. sudo apt-get install -yq libasound2-dev libfluidsynth-dev libgl1-mesa-dev liblo-dev libmagic-dev libpulse-dev libqt4-dev libsndfile1-dev libx11-dev libxcursor-dev libxext-dev libxrandr-dev pkg-config pyqt5-dev-tools qtbase5-dev
  64. sudo apt-get install -yq g++-multilib libfreetype6:i386 libfontconfig1:i386 libx11-6:i386 libxext6:i386
  65. # Fix 32bit bridge build
  66. sudo ln -s /usr/lib/i386-linux-gnu/libX11.so.6 /usr/lib/i386-linux-gnu/libX11.so
  67. sudo ln -s /usr/lib/i386-linux-gnu/libXext.so.6 /usr/lib/i386-linux-gnu/libXext.so
  68. sudo ln -s /usr/lib/i386-linux-gnu/libfreetype.so.6 /usr/lib/i386-linux-gnu/libfreetype.so
  69. sudo ln -s /usr/lib/i386-linux-gnu/libfontconfig.so.1 /usr/lib/i386-linux-gnu/libfontconfig.so
  70. - name: make features
  71. run: make features
  72. - name: make
  73. run: make -j $(nproc)
  74. - name: make posix32
  75. run: make posix32 -j $(nproc)
  76. ubuntu-20_04:
  77. runs-on: ubuntu-20.04
  78. steps:
  79. - uses: actions/checkout@v2
  80. - name: Fix GitHub's mess
  81. run: |
  82. sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
  83. sudo apt-get update -qq
  84. sudo apt-get install -yqq --allow-downgrades libpcre2-8-0/focal libpcre2-16-0/focal libpcre2-32-0/focal libpcre2-posix2/focal
  85. - name: Set up dependencies
  86. run: |
  87. sudo dpkg --add-architecture i386
  88. sudo apt-get update -qq
  89. sudo apt-get install -yq libasound2-dev libfluidsynth-dev libgl1-mesa-dev liblo-dev libmagic-dev libpulse-dev libsndfile1-dev libx11-dev libxcursor-dev libxext-dev libxrandr-dev pkg-config pyqt5-dev-tools qtbase5-dev
  90. sudo apt-get install -yq g++-multilib libfreetype6:i386 libfontconfig1:i386 libx11-6:i386 libxext6:i386
  91. # Fix 32bit bridge build
  92. sudo ln -s /usr/lib/i386-linux-gnu/libX11.so.6 /usr/lib/i386-linux-gnu/libX11.so
  93. sudo ln -s /usr/lib/i386-linux-gnu/libXext.so.6 /usr/lib/i386-linux-gnu/libXext.so
  94. sudo ln -s /usr/lib/i386-linux-gnu/libfreetype.so.6 /usr/lib/i386-linux-gnu/libfreetype.so
  95. sudo ln -s /usr/lib/i386-linux-gnu/libfontconfig.so.1 /usr/lib/i386-linux-gnu/libfontconfig.so
  96. - name: make features
  97. run: make features
  98. - name: make
  99. run: make -j $(nproc)
  100. - name: make posix32
  101. run: make posix32 -j $(nproc)
  102. ubuntu-mingw-win32:
  103. runs-on: ubuntu-20.04
  104. env:
  105. CC: i686-w64-mingw32-gcc
  106. CXX: i686-w64-mingw32-g++
  107. CROSS_COMPILING: "true"
  108. PKG_CONFIG: "false"
  109. steps:
  110. - uses: actions/checkout@v2
  111. - name: Fix GitHub's mess
  112. run: |
  113. sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
  114. sudo apt-get update -qq
  115. sudo apt-get install -yqq --allow-downgrades libgd3/focal libpcre2-8-0/focal libpcre2-16-0/focal libpcre2-32-0/focal libpcre2-posix2/focal
  116. sudo apt-get purge -yqq libmono* moby* mono* php* libgdiplus libpcre2-posix3 libzip4
  117. - name: Set up dependencies
  118. run: |
  119. sudo dpkg --add-architecture i386
  120. sudo apt-get update -qq
  121. sudo apt-get install -yq binutils-mingw-w64-i686 g++-mingw-w64-i686 mingw-w64
  122. - name: make features
  123. run: make features
  124. - name: make
  125. run: make -j $(nproc)
  126. ubuntu-mingw-win64:
  127. runs-on: ubuntu-20.04
  128. env:
  129. CC: x86_64-w64-mingw32-gcc
  130. CXX: x86_64-w64-mingw32-g++
  131. CROSS_COMPILING: "true"
  132. PKG_CONFIG: "false"
  133. steps:
  134. - uses: actions/checkout@v2
  135. - name: Fix GitHub's mess
  136. run: |
  137. sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
  138. sudo apt-get update -qq
  139. sudo apt-get install -yqq --allow-downgrades libgd3/focal libpcre2-8-0/focal libpcre2-16-0/focal libpcre2-32-0/focal libpcre2-posix2/focal
  140. sudo apt-get purge -yqq libmono* moby* mono* php* libgdiplus libpcre2-posix3 libzip4
  141. - name: Set up dependencies
  142. run: |
  143. sudo apt-get update -qq
  144. sudo apt-get install -yq binutils-mingw-w64-x86-64 g++-mingw-w64-x86-64 mingw-w64
  145. - name: make features
  146. run: make features
  147. - name: make
  148. run: make -j $(nproc)