summaryrefslogtreecommitdiff
path: root/src/contrib/SDL-2.30.2/.github/workflows/riscos.yml
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/riscos.yml
Initial commit.
Diffstat (limited to 'src/contrib/SDL-2.30.2/.github/workflows/riscos.yml')
-rw-r--r--src/contrib/SDL-2.30.2/.github/workflows/riscos.yml68
1 files changed, 68 insertions, 0 deletions
diff --git a/src/contrib/SDL-2.30.2/.github/workflows/riscos.yml b/src/contrib/SDL-2.30.2/.github/workflows/riscos.yml
new file mode 100644
index 0000000..9f4c140
--- /dev/null
+++ b/src/contrib/SDL-2.30.2/.github/workflows/riscos.yml
@@ -0,0 +1,68 @@
1name: Build (RISC OS)
2
3on: [push, pull_request]
4
5jobs:
6 Build:
7 name: ${{ matrix.platform.name }}
8 runs-on: ubuntu-latest
9 container: riscosdotinfo/riscos-gccsdk-4.7:latest
10
11 strategy:
12 fail-fast: false
13 matrix:
14 platform:
15 - { name: autotools, test_args: '-DTEST_SHARED=FALSE' } # FIXME: autotools should build and install shared libraries
16 - { name: CMake }
17
18 steps:
19 - name: Setup dependencies
20 run: apt-get update && apt-get install -y cmake ninja-build
21 - uses: actions/checkout@v4
22 - name: Configure (autotools)
23 if: ${{ contains(matrix.platform.name, 'autotools') }}
24 run: |
25 mkdir build_autotools
26 cd build_autotools
27 ../configure \
28 --host=arm-unknown-riscos \
29 --disable-gcc-atomics \
30 --prefix=${{ github.workspace }}/prefix_autotools
31 - name: Build (autotools)
32 if: ${{ contains(matrix.platform.name, 'autotools') }}
33 run: make -C build_autotools -j`nproc` V=1
34 - name: Install (autotools)
35 if: ${{ contains(matrix.platform.name, 'autotools') }}
36 run: |
37 echo "SDL2_DIR=${{ github.workspace }}/prefix_autotools" >> $GITHUB_ENV
38 make -C build_autotools install
39 ( cd ${{ github.workspace }}/prefix_autotools; find ) | LC_ALL=C sort -u
40 - name: Configure (CMake)
41 if: ${{ contains(matrix.platform.name, 'CMake') }}
42 run: |
43 cmake -S . -B build -G Ninja \
44 -DCMAKE_TOOLCHAIN_FILE=/home/riscos/env/toolchain-riscos.cmake \
45 -DRISCOS=ON \
46 -DSDL_GCC_ATOMICS=OFF \
47 -DSDL_TESTS=ON \
48 -DSDL_INSTALL_TESTS=ON \
49 -DSDL_VENDOR_INFO="Github Workflow" \
50 -DCMAKE_BUILD_TYPE=Release \
51 -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/prefix_cmake
52 - name: Build (CMake)
53 if: ${{ contains(matrix.platform.name, 'CMake') }}
54 run: cmake --build build --verbose
55 - name: Install (CMake)
56 if: ${{ contains(matrix.platform.name, 'CMake') }}
57 run: |
58 echo "SDL2_DIR=${{ github.workspace }}/prefix_cmake" >> $GITHUB_ENV
59 cmake --install build/
60 ( cd ${{ github.workspace }}/prefix_cmake; find ) | LC_ALL=C sort -u
61 - name: Verify CMake configuration files
62 run: |
63 cmake -S cmake/test -B cmake_config_build -G Ninja \
64 -DCMAKE_TOOLCHAIN_FILE=/home/riscos/env/toolchain-riscos.cmake \
65 -DCMAKE_PREFIX_PATH=${{ env.SDL2_DIR }} \
66 -DCMAKE_BUILD_TYPE=Release \
67 ${{ matrix.platform.test_args }}
68 cmake --build cmake_config_build --verbose