diff options
author | 3gg <3gg@shellblade.net> | 2024-05-04 16:51:29 -0700 |
---|---|---|
committer | 3gg <3gg@shellblade.net> | 2024-05-04 16:51:29 -0700 |
commit | 8222bfe56d4dabe8d92fc4b25ea1b0163b16f3e1 (patch) | |
tree | 763389e42276035ac134d94eb1dc32293b88d807 /src/contrib/SDL-2.30.2/.github/workflows/n3ds.yml |
Initial commit.
Diffstat (limited to 'src/contrib/SDL-2.30.2/.github/workflows/n3ds.yml')
-rw-r--r-- | src/contrib/SDL-2.30.2/.github/workflows/n3ds.yml | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/src/contrib/SDL-2.30.2/.github/workflows/n3ds.yml b/src/contrib/SDL-2.30.2/.github/workflows/n3ds.yml new file mode 100644 index 0000000..c7a135a --- /dev/null +++ b/src/contrib/SDL-2.30.2/.github/workflows/n3ds.yml | |||
@@ -0,0 +1,55 @@ | |||
1 | name: Build (Nintendo 3DS) | ||
2 | |||
3 | on: [push, pull_request] | ||
4 | |||
5 | jobs: | ||
6 | n3ds: | ||
7 | runs-on: ubuntu-latest | ||
8 | container: | ||
9 | image: devkitpro/devkitarm:latest | ||
10 | steps: | ||
11 | - uses: actions/checkout@v4 | ||
12 | - name: Install build requirements | ||
13 | run: | | ||
14 | apt update | ||
15 | apt install ninja-build | ||
16 | - name: Configure CMake | ||
17 | run: | | ||
18 | cmake -S . -B build -G Ninja \ | ||
19 | -DCMAKE_TOOLCHAIN_FILE=${DEVKITPRO}/cmake/3DS.cmake \ | ||
20 | -DSDL_WERROR=ON \ | ||
21 | -DSDL_TESTS=ON \ | ||
22 | -DSDL_INSTALL_TESTS=ON \ | ||
23 | -DSDL_VENDOR_INFO="Github Workflow" \ | ||
24 | -DCMAKE_BUILD_TYPE=Release \ | ||
25 | -DCMAKE_INSTALL_PREFIX=prefix | ||
26 | - name: Build | ||
27 | run: cmake --build build --verbose | ||
28 | - name: Install CMake | ||
29 | run: | | ||
30 | echo "SDL2_DIR=$(pwd)/prefix" >> $GITHUB_ENV | ||
31 | cmake --install build/ | ||
32 | ( cd prefix; find ) | LC_ALL=C sort -u | ||
33 | - name: Verify CMake configuration files | ||
34 | run: | | ||
35 | cmake -S cmake/test -B cmake_config_build -G Ninja \ | ||
36 | -DCMAKE_TOOLCHAIN_FILE=${DEVKITPRO}/cmake/3DS.cmake \ | ||
37 | -DTEST_SHARED=FALSE \ | ||
38 | -DCMAKE_PREFIX_PATH=${{ env.SDL2_DIR }} \ | ||
39 | -DCMAKE_BUILD_TYPE=Release | ||
40 | cmake --build cmake_config_build --verbose | ||
41 | - name: Extract CC/CXX/CFLAGS/CXXFLAGS from CMake toolchain | ||
42 | run: | | ||
43 | cmake -S .github/cmake -B /tmp/cmake_extract \ | ||
44 | -DCMAKE_TOOLCHAIN_FILE=${DEVKITPRO}/cmake/3DS.cmake \ | ||
45 | -DCMAKE_BUILD_TYPE=Release \ | ||
46 | -DVAR_PATH=/tmp/n3ds_env.txt | ||
47 | cat /tmp/n3ds_env.txt >> $GITHUB_ENV | ||
48 | - name: Verify sdl2-config | ||
49 | run: | | ||
50 | export PATH=${{ env.SDL2_DIR }}/bin:$PATH | ||
51 | cmake/test/test_sdlconfig.sh | ||
52 | - name: Verify sdl2.pc | ||
53 | run: | | ||
54 | export PKG_CONFIG_PATH=${{ env.SDL2_DIR }}/lib/pkgconfig | ||
55 | cmake/test/test_pkgconfig.sh | ||