summaryrefslogtreecommitdiff
path: root/src/contrib/SDL-2.30.2/.github/workflows/psp.yaml
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2024-05-04 16:51:29 -0700
committer3gg <3gg@shellblade.net>2024-05-04 16:51:29 -0700
commit8222bfe56d4dabe8d92fc4b25ea1b0163b16f3e1 (patch)
tree763389e42276035ac134d94eb1dc32293b88d807 /src/contrib/SDL-2.30.2/.github/workflows/psp.yaml
Initial commit.
Diffstat (limited to 'src/contrib/SDL-2.30.2/.github/workflows/psp.yaml')
-rw-r--r--src/contrib/SDL-2.30.2/.github/workflows/psp.yaml50
1 files changed, 50 insertions, 0 deletions
diff --git a/src/contrib/SDL-2.30.2/.github/workflows/psp.yaml b/src/contrib/SDL-2.30.2/.github/workflows/psp.yaml
new file mode 100644
index 0000000..83e5dc3
--- /dev/null
+++ b/src/contrib/SDL-2.30.2/.github/workflows/psp.yaml
@@ -0,0 +1,50 @@
1name: Build (Sony Playstation Portable)
2
3on: [push, pull_request]
4
5jobs:
6 psp:
7 runs-on: ubuntu-latest
8 container: pspdev/pspdev:latest
9 steps:
10 - uses: actions/checkout@v4
11 - name: Setup dependencies
12 run: |
13 apk update
14 apk add cmake gmp mpc1 mpfr4 make pkgconf
15 - name: Configure CMake
16 run: |
17 cmake -S . -B build \
18 -DCMAKE_TOOLCHAIN_FILE=$PSPDEV/psp/share/pspdev.cmake \
19 -DSDL_WERROR=ON \
20 -DSDL_TESTS=ON \
21 -DSDL_INSTALL_TESTS=ON \
22 -DCMAKE_BUILD_TYPE=Release \
23 -DCMAKE_INSTALL_PREFIX=prefix
24 - name: Build
25 run: cmake --build build --config Release
26 - name: Install
27 run: |
28 echo "SDL2_DIR=$(pwd)/prefix" >> $GITHUB_ENV
29 cmake --install build --config Release
30 ( cd prefix; find ) | LC_ALL=C sort -u
31 - name: Verify CMake configuration files
32 run: |
33 cmake -S cmake/test -B cmake_config_build \
34 -DCMAKE_TOOLCHAIN_FILE=$PSPDEV/psp/share/pspdev.cmake \
35 -DCMAKE_PREFIX_PATH=${{ env.SDL2_DIR }} \
36 -DTEST_SHARED=FALSE \
37 -DCMAKE_BUILD_TYPE=Release
38 cmake --build cmake_config_build --verbose
39 - name: Verify sdl2-config
40 run: |
41 export CC=psp-gcc
42 export LDFLAGS="-L$PSPDEV/lib -L$PSPDEV/psp/lib -L$PSPDEV/psp/sdk/lib"
43 export PATH=${{ env.SDL2_DIR }}/bin:$PATH
44 cmake/test/test_sdlconfig.sh
45 - name: Verify sdl2.pc
46 run: |
47 export CC=psp-gcc
48 export LDFLAGS="-L$PSPDEV/lib -L$PSPDEV/psp/lib -L$PSPDEV/psp/sdk/lib"
49 export PKG_CONFIG_PATH=${{ env.SDL2_DIR }}/lib/pkgconfig
50 cmake/test/test_pkgconfig.sh