From ce0938916705ef36231fa3d9210ef982b8d32fa5 Mon Sep 17 00:00:00 2001 From: Cameron Cawley Date: Tue, 26 Oct 2021 23:10:30 +0100 Subject: [PATCH] Add RISC OS builds to GitHub Actions --- .github/workflows/riscos.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/riscos.yml diff --git a/.github/workflows/riscos.yml b/.github/workflows/riscos.yml new file mode 100644 index 000000000..3f46668b7 --- /dev/null +++ b/.github/workflows/riscos.yml @@ -0,0 +1,28 @@ +name: Build (RISC OS) + +on: [push, pull_request] + +jobs: + autotools: + name: autotools + runs-on: ubuntu-latest + container: riscosdotinfo/riscos-gccsdk-4.7:latest + steps: + - uses: actions/checkout@v2 + - name: Configure + run: ./configure --host=arm-unknown-riscos --disable-gcc-atomics + - name: Build + run: make -j`nproc` + + cmake: + name: CMake + runs-on: ubuntu-latest + container: riscosdotinfo/riscos-gccsdk-4.7:latest + steps: + - name: Setup dependencies + run: apt-get update && apt-get install -y cmake ninja-build + - uses: actions/checkout@v2 + - name: Configure CMake + run: cmake -S. -Bbuild -G Ninja -DCMAKE_TOOLCHAIN_FILE=/home/riscos/env/toolchain-riscos.cmake -DRISCOS=ON -DSDL_GCC_ATOMICS=OFF -DCMAKE_BUILD_TYPE=Release + - name: Build + run: cmake --build build