n3ds.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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_WERROR=ON \
  19. -DSDL_TESTS=ON \
  20. -DSDL_INSTALL_TESTS=ON \
  21. -DCMAKE_BUILD_TYPE=Release \
  22. -DCMAKE_INSTALL_PREFIX=prefix
  23. - name: Build
  24. run: cmake --build build --verbose
  25. - name: Install CMake
  26. run: |
  27. echo "SDL2_DIR=$(pwd)/prefix" >> $GITHUB_ENV
  28. cmake --install build/
  29. ( cd prefix; find ) | LC_ALL=C sort -u
  30. - name: Verify CMake configuration files
  31. run: |
  32. cmake -S cmake/test -B cmake_config_build -G Ninja \
  33. -DCMAKE_TOOLCHAIN_FILE=${DEVKITPRO}/cmake/3DS.cmake \
  34. -DTEST_SHARED=FALSE \
  35. -DCMAKE_PREFIX_PATH=${{ env.SDL2_DIR }} \
  36. -DCMAKE_BUILD_TYPE=Release
  37. cmake --build cmake_config_build --verbose
  38. # Not running test_pkgconfig.sh and test_sdlconfig.sh
  39. # as invoking the compiler manually is not supported