DISTRHO Nekobi
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.

82 lines
2.2KB

  1. name: build
  2. on:
  3. push:
  4. branches:
  5. - '*'
  6. pull_request:
  7. branches:
  8. - '*'
  9. env:
  10. DEBIAN_FRONTEND: noninteractive
  11. BASE_FLAGS: -mtune=generic -msse -msse2
  12. jobs:
  13. linux-x64:
  14. runs-on: ubuntu-18.04
  15. steps:
  16. - uses: actions/checkout@v2
  17. with:
  18. submodules: recursive
  19. - name: Set up dependencies
  20. run: |
  21. sudo apt-get install -yq libasound2-dev libpulse-dev liblo-dev libgl1-mesa-dev
  22. - name: Build Linux native
  23. env:
  24. CFLAGS: "${BASE_FLAGS} -mfpmath=sse"
  25. CXXFLAGS: "${BASE_FLAGS} -mfpmath=sse"
  26. run: |
  27. make NOOPT=true
  28. - uses: actions/upload-artifact@v2
  29. with:
  30. name: linux x64
  31. path: bin/*
  32. macos-universal:
  33. runs-on: macos-10.15
  34. steps:
  35. - uses: actions/checkout@v2
  36. with:
  37. submodules: recursive
  38. - name: Fix up Xcode
  39. run: |
  40. sudo rm -Rf /Library/Developer/CommandLineTools/SDKs/*
  41. sudo xcode-select -s "/Applications/Xcode_12.3.app"
  42. - name: Build macOS
  43. env:
  44. CFLAGS: "${BASE_FLAGS} -DMAC_OS_X_VERSION_MAX_ALLOWED=MAC_OS_X_VERSION_10_12 -mmacosx-version-min=10.12 -arch x86_64 -arch arm64"
  45. CXXFLAGS: "${BASE_FLAGS} -DMAC_OS_X_VERSION_MAX_ALLOWED=MAC_OS_X_VERSION_10_12 -mmacosx-version-min=10.12 -arch x86_64 -arch arm64"
  46. LDFLAGS: -mmacosx-version-min=10.12 -arch x86_64 -arch arm64
  47. run: |
  48. make NOOPT=true
  49. - uses: actions/upload-artifact@v2
  50. with:
  51. name: macOS universal
  52. path: |
  53. bin/*
  54. !bin/*-dssi.dylib
  55. win64:
  56. runs-on: ubuntu-20.04
  57. steps:
  58. - uses: actions/checkout@v2
  59. with:
  60. submodules: recursive
  61. - name: Set up dependencies
  62. run: |
  63. sudo apt-get install -yq mingw-w64 binfmt-support binutils-mingw-w64-x86-64 g++-mingw-w64-x86-64
  64. - name: Build win64 cross-compiled
  65. env:
  66. CC: x86_64-w64-mingw32-gcc
  67. CXX: x86_64-w64-mingw32-g++
  68. LDFLAGS: -static -static-libgcc -static-libstdc++
  69. PKG_CONFIG_PATH: /not-used-please-ignore
  70. run: |
  71. make
  72. - uses: actions/upload-artifact@v2
  73. with:
  74. name: macOS universal
  75. path: |
  76. bin/*
  77. !bin/*-dssi.dll