🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
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.

53 lines
1.6 KiB

  1. name: Build (Sony Playstation Vita)
  2. on: [push, pull_request]
  3. defaults:
  4. run:
  5. shell: sh
  6. jobs:
  7. vita:
  8. runs-on: ubuntu-latest
  9. container:
  10. image: vitasdk/vitasdk:latest
  11. steps:
  12. - uses: actions/checkout@v3
  13. - name: Install build requirements
  14. run: |
  15. apk update
  16. apk add cmake ninja pkgconf bash
  17. - name: Configure CMake
  18. run: |
  19. cmake -S . -B build -G Ninja \
  20. -DCMAKE_TOOLCHAIN_FILE=${VITASDK}/share/vita.toolchain.cmake \
  21. -DSDL_WERROR=ON \
  22. -DSDL_TESTS=ON \
  23. -DSDL_INSTALL_TESTS=ON \
  24. -DCMAKE_BUILD_TYPE=Release \
  25. -DCMAKE_INSTALL_PREFIX=prefix
  26. - name: Build
  27. run: cmake --build build --verbose
  28. - name: Install CMake
  29. run: |
  30. echo "SDL2_DIR=$(pwd)/prefix" >> $GITHUB_ENV
  31. cmake --install build/
  32. ( cd prefix; find ) | LC_ALL=C sort -u
  33. - name: Verify CMake configuration files
  34. run: |
  35. cmake -S cmake/test -B cmake_config_build -G Ninja \
  36. -DCMAKE_TOOLCHAIN_FILE=${VITASDK}/share/vita.toolchain.cmake \
  37. -DTEST_SHARED=FALSE \
  38. -DCMAKE_PREFIX_PATH=${{ env.SDL2_DIR }} \
  39. -DCMAKE_BUILD_TYPE=Release
  40. cmake --build cmake_config_build --verbose
  41. - name: Verify sdl2-config
  42. run: |
  43. export CC=arm-vita-eabi-gcc
  44. export PATH=${{ env.SDL2_DIR }}/bin:$PATH
  45. cmake/test/test_sdlconfig.sh
  46. - name: Verify sdl2.pc
  47. run: |
  48. export CC=arm-vita-eabi-gcc
  49. export PKG_CONFIG_PATH=${{ env.SDL2_DIR }}/lib/pkgconfig
  50. cmake/test/test_pkgconfig.sh