cd.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. name: Build and Publish Prebuilt Binaries
  2. on:
  3. release:
  4. types: [created]
  5. jobs:
  6. build:
  7. name: ${{ matrix.name }}
  8. runs-on: ${{ matrix.os }}
  9. strategy:
  10. fail-fast: false
  11. matrix:
  12. include:
  13. - name: windows-x64
  14. os: windows-latest
  15. arch: x64
  16. - name: windows-x86
  17. os: windows-latest
  18. arch: x86
  19. cmake_args: -A Win32
  20. - name: macos-x64
  21. os: macos-13
  22. - name: macos-arm64
  23. os: macos-latest
  24. - name: linux-x64
  25. os: ubuntu-latest
  26. steps:
  27. - uses: actions/[email protected]
  28. - uses: lukka/get-cmake@latest
  29. - uses: ilammy/msvc-dev-cmd@v1
  30. with:
  31. arch: ${{ matrix.arch }}
  32. - name: Build
  33. run: |
  34. cmake -B build -S . ${{ matrix.cmake_args }} -DCMAKE_BUILD_TYPE=Release -DASSIMP_BUILD_TESTS=OFF
  35. cmake --build build --config Release
  36. - uses: TheDoctor0/[email protected]
  37. with:
  38. filename: ${{ matrix.name }}-${{ github.event.release.tag_name }}.zip
  39. directory: build/bin/
  40. - uses: softprops/action-gh-release@v2
  41. with:
  42. files: build/bin/${{ matrix.name }}-${{ github.event.release.tag_name }}.zip
  43. append_body: true
  44. fail_on_unmatched_files: true