🛠️🐜 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.

50 lines
1.6 KiB

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