DISTRHO Plugin Framework
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.

147 lines
4.6KB

  1. name: cmake
  2. on:
  3. push:
  4. branches:
  5. - '*'
  6. pull_request:
  7. branches:
  8. - '*'
  9. env:
  10. BUILD_TYPE: Release
  11. jobs:
  12. #ubuntu-20-04:
  13. #strategy:
  14. #matrix:
  15. #target: [linux-arm64, linux-armhf, linux-i686, linux-riscv64, linux-x86_64, win32, win64, pluginval]
  16. #runs-on: ubuntu-20.04
  17. #steps:
  18. #- uses: actions/checkout@v3
  19. #with:
  20. #submodules: recursive
  21. #- uses: distrho/dpf-cmake-action@v1
  22. #with:
  23. #target: ${{ matrix.target }}
  24. #dpf_path: .
  25. ubuntu-22-04:
  26. strategy:
  27. matrix:
  28. target: [linux-arm64, linux-armhf, linux-i686, linux-x86_64, win32, win64, pluginval]
  29. # linux-riscv64,
  30. runs-on: ubuntu-22.04
  31. steps:
  32. - uses: actions/checkout@v3
  33. with:
  34. submodules: recursive
  35. - uses: distrho/dpf-cmake-action@v1
  36. with:
  37. target: ${{ matrix.target }}
  38. dpf_path: .
  39. macos-11:
  40. strategy:
  41. matrix:
  42. target: [macos-intel, macos-universal, macos-10.15]
  43. runs-on: macos-11
  44. steps:
  45. - uses: actions/checkout@v3
  46. with:
  47. submodules: recursive
  48. - uses: distrho/dpf-cmake-action@v1
  49. with:
  50. target: ${{ matrix.target }}
  51. dpf_path: .
  52. macos-12:
  53. strategy:
  54. matrix:
  55. target: [macos-intel, macos-universal, macos-10.15]
  56. runs-on: macos-12
  57. steps:
  58. - uses: actions/checkout@v3
  59. with:
  60. submodules: recursive
  61. - uses: distrho/dpf-cmake-action@v1
  62. with:
  63. target: ${{ matrix.target }}
  64. dpf_path: .
  65. cmake_win32:
  66. runs-on: windows-2019
  67. steps:
  68. - name: Set environment
  69. run: |
  70. echo "release_arch=Win32" >> "${Env:GITHUB_ENV}"
  71. echo "vcpkg_triplet=x86-windows-static" >> "${Env:GITHUB_ENV}"
  72. echo "vcpkg_git_commit_id=a3db16a4475b963cacf0260068c497fb72c8f3c0" >> "${Env:GITHUB_ENV}"
  73. - name: Restore from cache and install vcpkg
  74. uses: lukka/run-vcpkg@v6
  75. with:
  76. setupOnly: true
  77. vcpkgTriplet: ${{env.vcpkg_triplet}}
  78. vcpkgGitCommitId: ${{env.vcpkg_git_commit_id}}
  79. #- name: Install packages
  80. # run: |
  81. # & "${Env:VCPKG_ROOT}/vcpkg" install "cairo:${Env:vcpkg_triplet}"
  82. - uses: actions/checkout@v2
  83. with:
  84. submodules: recursive
  85. - name: Create Build Environment
  86. working-directory: ${{runner.workspace}}
  87. run: cmake -E make_directory build
  88. - name: Configure CMake
  89. working-directory: ${{runner.workspace}}/build
  90. run: |
  91. cmake "${Env:GITHUB_WORKSPACE}" -G"Visual Studio 16 2019" -A"${Env:release_arch}" -DCMAKE_BUILD_TYPE="${Env:BUILD_TYPE}" -DVCPKG_TARGET_TRIPLET="${Env:vcpkg_triplet}" -DCMAKE_TOOLCHAIN_FILE="${Env:VCPKG_INSTALLATION_ROOT}/scripts/buildsystems/vcpkg.cmake"
  92. - name: Build all
  93. working-directory: ${{runner.workspace}}/build
  94. run: cmake --build . --config "${Env:BUILD_TYPE}" -j 2
  95. - name: Show built files
  96. working-directory: ${{runner.workspace}}/build/bin
  97. run: tree
  98. - uses: actions/upload-artifact@v2
  99. with:
  100. name: Win32 artifacts
  101. path: ${{runner.workspace}}/build/bin/
  102. cmake_win64:
  103. runs-on: windows-2019
  104. steps:
  105. - name: Set environment
  106. run: |
  107. echo "release_arch=x64" >> "${Env:GITHUB_ENV}"
  108. echo "vcpkg_triplet=x64-windows-static" >> "${Env:GITHUB_ENV}"
  109. echo "vcpkg_git_commit_id=a3db16a4475b963cacf0260068c497fb72c8f3c0" >> "${Env:GITHUB_ENV}"
  110. - name: Restore from cache and install vcpkg
  111. uses: lukka/run-vcpkg@v6
  112. with:
  113. setupOnly: true
  114. vcpkgTriplet: ${{env.vcpkg_triplet}}
  115. vcpkgGitCommitId: ${{env.vcpkg_git_commit_id}}
  116. #- name: Install packages
  117. # run: |
  118. # & "${Env:VCPKG_ROOT}/vcpkg" install "cairo:${Env:vcpkg_triplet}"
  119. - uses: actions/checkout@v2
  120. with:
  121. submodules: recursive
  122. - name: Create Build Environment
  123. working-directory: ${{runner.workspace}}
  124. run: cmake -E make_directory build
  125. - name: Configure CMake
  126. working-directory: ${{runner.workspace}}/build
  127. run: |
  128. cmake "${Env:GITHUB_WORKSPACE}" -G"Visual Studio 16 2019" -A"${Env:release_arch}" -DCMAKE_BUILD_TYPE="${Env:BUILD_TYPE}" -DVCPKG_TARGET_TRIPLET="${Env:vcpkg_triplet}" -DCMAKE_TOOLCHAIN_FILE="${Env:VCPKG_INSTALLATION_ROOT}/scripts/buildsystems/vcpkg.cmake"
  129. - name: Build all
  130. working-directory: ${{runner.workspace}}/build
  131. run: cmake --build . --config "${Env:BUILD_TYPE}" -j 2
  132. - name: Show built files
  133. working-directory: ${{runner.workspace}}/build/bin
  134. run: tree
  135. - uses: actions/upload-artifact@v2
  136. with:
  137. name: Win64 artifacts
  138. path: ${{runner.workspace}}/build/bin/