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.

84 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. HOMEBREW_NO_AUTO_UPDATE: 1
  12. jobs:
  13. # linux native build
  14. linux:
  15. runs-on: ubuntu-18.04
  16. steps:
  17. - uses: actions/checkout@v2
  18. - name: Set up cache
  19. uses: actions/cache@v2
  20. - name: Set up dependencies
  21. run: |
  22. sudo apt-get install -yq libasound2-dev libpulse-dev libgl1-mesa-dev
  23. - name: Build Linux native
  24. run: |
  25. make
  26. - uses: actions/upload-artifact@v2
  27. with:
  28. name: linux binaries
  29. path: bin/*
  30. # macOS native build
  31. macos:
  32. runs-on: macos-10.15
  33. steps:
  34. - uses: actions/checkout@v2
  35. - name: Set up dependencies
  36. run: |
  37. brew install cmake jq meson
  38. - name: Build macOS
  39. shell: bash
  40. run: |
  41. make
  42. - uses: actions/upload-artifact@v2
  43. with:
  44. name: macOS binaries
  45. path: bin/*
  46. # linux with win64 cross-compilation
  47. #win64:
  48. #runs-on: ubuntu-20.04
  49. #steps:
  50. #- uses: actions/checkout@v2
  51. #- name: Set up cache
  52. #uses: actions/cache@v2
  53. #with:
  54. #path: ~/apt-archives
  55. #key: cache-win64
  56. #- name: Restore debian packages cache
  57. #run: |
  58. #if [ -d ~/apt-archives ] && [ "$(ls ~/apt-archives | wc -l)" -ne 0 ]; then \
  59. #sudo cp ~/apt-archives/*.deb /var/cache/apt/archives/; \
  60. #fi
  61. #- name: Set up dependencies
  62. #run: |
  63. #wget -qO- https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add - && \
  64. #sudo dpkg --add-architecture i386 && \
  65. #sudo apt-add-repository -y 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main' && \
  66. #sudo apt-get update -qq && \
  67. #sudo apt-get install -yq mingw-w64 binfmt-support binutils-mingw-w64-x86-64 g++-mingw-w64-x86-64 winehq-stable
  68. #- name: Cache debian packages
  69. #run: |
  70. #mkdir -p ~/apt-archives && \
  71. #sudo mv /var/cache/apt/archives/*.deb ~/apt-archives/
  72. #- name: Build win64 cross-compiled
  73. #shell: bash
  74. #run: |
  75. #make
  76. #- uses: actions/upload-artifact@v2
  77. #with:
  78. #name: win64 installer
  79. #path: setup/inno/PawPaw-*.exe