n3ds.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. name: Build (Nintendo 3DS)
  2. on: [push, pull_request]
  3. jobs:
  4. n3ds:
  5. runs-on: ubuntu-latest
  6. container:
  7. image: devkitpro/devkitarm:latest
  8. steps:
  9. - uses: actions/checkout@v2
  10. - name: Install build requirements
  11. run: |
  12. apt update
  13. apt install ninja-build
  14. - name: Configure CMake
  15. run: |
  16. cmake -S . -B build -G Ninja \
  17. -DCMAKE_TOOLCHAIN_FILE=${DEVKITPRO}/cmake/3DS.cmake \
  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 --verbose
  24. - name: Install CMake
  25. run: |
  26. echo "SDL2_DIR=$(pwd)/prefix" >> $GITHUB_ENV
  27. cmake --install build/
  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 -G Ninja \
  32. -DCMAKE_TOOLCHAIN_FILE=${DEVKITPRO}/cmake/3DS.cmake \
  33. -DTEST_SHARED=FALSE \
  34. -DCMAKE_PREFIX_PATH=${{ env.SDL2_DIR }} \
  35. -DCMAKE_BUILD_TYPE=Release
  36. cmake --build cmake_config_build --verbose
  37. # Not running test_pkgconfig.sh and test_sdlconfig.sh
  38. # as invoking the compiler manually is not supported