n3ds.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. name: Build (Nintendo 3DS)
  2. on: [push, pull_request]
  3. concurrency:
  4. group: ${{ github.workflow }}-${{ github.event.issue.number || github.run_id }}
  5. cancel-in-progress: true
  6. jobs:
  7. n3ds:
  8. runs-on: ubuntu-latest
  9. container:
  10. image: devkitpro/devkitarm:latest
  11. steps:
  12. - uses: actions/checkout@v3
  13. - name: Install build requirements
  14. run: |
  15. apt update
  16. apt install ninja-build
  17. - name: Configure CMake
  18. run: |
  19. cmake -S . -B build -G Ninja \
  20. -DCMAKE_TOOLCHAIN_FILE=${DEVKITPRO}/cmake/3DS.cmake \
  21. -DSDL_WERROR=ON \
  22. -DSDL_TESTS=ON \
  23. -DSDL_INSTALL_TESTS=ON \
  24. -DSDL_VENDOR_INFO="Github Workflow" \
  25. -DCMAKE_BUILD_TYPE=Release \
  26. -DCMAKE_INSTALL_PREFIX=prefix
  27. - name: Build
  28. run: cmake --build build --verbose
  29. - name: Install CMake
  30. run: |
  31. echo "SDL3_DIR=$(pwd)/prefix" >> $GITHUB_ENV
  32. cmake --install build/
  33. ( cd prefix; find ) | LC_ALL=C sort -u
  34. - name: Verify CMake configuration files
  35. run: |
  36. cmake -S cmake/test -B cmake_config_build -G Ninja \
  37. -DCMAKE_TOOLCHAIN_FILE=${DEVKITPRO}/cmake/3DS.cmake \
  38. -DTEST_SHARED=FALSE \
  39. -DCMAKE_PREFIX_PATH=${{ env.SDL3_DIR }} \
  40. -DCMAKE_BUILD_TYPE=Release
  41. cmake --build cmake_config_build --verbose
  42. # Not running test_pkgconfig.sh and test_sdlconfig.sh
  43. # as invoking the compiler manually is not supported