ppc64le.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. name: Build (PowerPC64)
  2. on: [push, pull_request]
  3. concurrency:
  4. group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
  5. cancel-in-progress: true
  6. jobs:
  7. ppc64le:
  8. runs-on: ubuntu-latest
  9. container:
  10. image: dockcross/linux-ppc64le:latest
  11. steps:
  12. - uses: actions/checkout@v4
  13. - name: Install build requirements
  14. run: |
  15. apt-get update -y
  16. apt-get install -y cmake ninja-build
  17. - name: Configure (CMake)
  18. run: |
  19. # FIXME: Enable SDL_WERROR
  20. cmake -S . -B build -G Ninja \
  21. -Wdeprecated -Wdev -Werror \
  22. -DSDL_SHARED=ON \
  23. -DSDL_STATIC=ON \
  24. -DSDL_WERROR=OFF \
  25. -DSDL_TESTS=ON \
  26. -DSDL_INSTALL_TESTS=ON \
  27. -DSDL_EXAMPLES=ON \
  28. -DSDL_DISABLE_INSTALL_DOCS=OFF \
  29. -DSDL_VENDOR_INFO="Github Workflow" \
  30. -DCMAKE_BUILD_TYPE=Release \
  31. -DCMAKE_INSTALL_PREFIX=prefix
  32. - name: Build (CMake)
  33. run: |
  34. cmake --build build --verbose
  35. - name: Install (CMake)
  36. run: |
  37. echo "SDL3_DIR=$(pwd)/prefix" >> $GITHUB_ENV
  38. cmake --install build/
  39. ( cd prefix; find ) | LC_ALL=C sort -u
  40. - name: Package (CPack)
  41. run: |
  42. cmake --build build/ --config Release --target package
  43. - name: Verify CMake configuration files
  44. run: |
  45. cmake -S cmake/test -B cmake_config_build -G Ninja \
  46. -DTEST_SHARED=TRUE \
  47. -DTEST_STATIC=TRUE \
  48. -DCMAKE_PREFIX_PATH=${{ env.SDL3_DIR }} \
  49. -DCMAKE_BUILD_TYPE=Release
  50. cmake --build cmake_config_build --verbose
  51. - name: Verify sdl3.pc
  52. run: |
  53. export PKG_CONFIG_PATH=${{ env.SDL3_DIR }}/lib/pkgconfig
  54. cmake/test/test_pkgconfig.sh
  55. - uses: actions/upload-artifact@v4
  56. with:
  57. if-no-files-found: error
  58. name: SDL-ppc64le
  59. path: build/dist/SDL3*