Fix generator mismatch in cmakelists #205
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Switch Validation | |
| on: [pull_request] | |
| jobs: | |
| build-switch: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: devkitpro/devkita64:20260219 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y ninja-build | |
| sudo apt-get remove -y cmake | |
| sudo dkp-pacman -R --noconfirm switch-tinyxml2 # devkitPro's tinyxml2 is too old and causes build issues | |
| export CFLAGS="${CFLAGS} -include strings.h" # weird libzip error (pulled in by LUS) that only happens in CI and not for SoH | |
| git -C libultraship remote add nx https://github.com/Net64DD/libultraship.git | |
| git -C libultraship fetch nx | |
| git -C libultraship checkout nx/main-nx-nightly | |
| wget https://github.com/Kitware/CMake/releases/download/v3.28.3/cmake-3.28.3-linux-x86_64.sh -O /tmp/cmake.sh | |
| sudo sh /tmp/cmake.sh --prefix=/usr/local/ --exclude-subdir | |
| cmake -H. -Bbuild-switch -GNinja -DCMAKE_TOOLCHAIN_FILE=/opt/devkitpro/cmake/Switch.cmake -DCMAKE_BUILD_TYPE:STRING=Release | |
| cmake --build build-switch --config Release -j3 | |
| wget -O gamecontrollerdb.txt https://github.com/mdqinc/SDL_GameControllerDB/blob/master/gamecontrollerdb.txt | |
| mv README.md readme.txt | |
| mv build-switch/*.nro Ghostship.nro | |
| - name: Upload build | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Ghostship-switch | |
| retention-days: 1 | |
| path: | | |
| Ghostship.nro | |
| config.yml | |
| assets | |
| gamecontrollerdb.txt |