From f84b403e46aa67ba28fb818818a6615bdc34b310 Mon Sep 17 00:00:00 2001 From: Fancy2209 <64917206+Fancy2209@users.noreply.github.com> Date: Sat, 9 Nov 2024 01:30:09 -0100 Subject: [PATCH] CI: Add PPC Artifacts (#220) --- .github/workflows/ci.yml | 95 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8e5976f8..cc950a28 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,6 +57,54 @@ jobs: with: name: FNA3D-SDL2-lib64 path: release/libFNA3D.so.0 + + linux-ppc: + name: Debian Linux PPC + runs-on: ubuntu-latest + container: + image: dockcross/linux-ppc:latest + steps: + - name: Are we really on Debian Linux? + run: cat /etc/os-release + + - name: Install dependencies + run: | + apt install -y chrpath + + - uses: actions/checkout@v4 + with: + submodules: true + + - name: Clone SDL2 + run: git clone --depth 1 --branch release-$SDL2_VERSION https://github.com/libsdl-org/SDL.git + + - name: Build SDL2 (Debug) + run: | + cd SDL + cmake -B build -G Ninja . -DCMAKE_BUILD_TYPE=Release + ninja -C build + cd .. + + - name: CMake configure (Debug) + run: cmake -B debug -G Ninja . -DCMAKE_BUILD_TYPE=Debug -DSDL2_INCLUDE_DIRS=${GITHUB_WORKSPACE}/SDL/include -DSDL2_LIBRARIES=${GITHUB_WORKSPACE}/SDL/build/libSDL2-2.0.so + + - name: Build (Debug) + run: ninja -C debug + + - name: CMake configure (Release) + run: cmake -B release -G Ninja . -DCMAKE_BUILD_TYPE=Release -DSDL2_INCLUDE_DIRS=${GITHUB_WORKSPACE}/SDL/include -DSDL2_LIBRARIES=${GITHUB_WORKSPACE}/SDL/build/libSDL2-2.0.so + + - name: Build (Release) + run: | + ninja -C release + chrpath -d release/libFNA3D.so.0 + + - name: Archive build result + uses: actions/upload-artifact@v4 + with: + name: FNA3D-PPC-SDL2-lib32 + path: release/libFNA3D.so.0 + linux-mingw: name: Rocky Linux MinGW @@ -256,6 +304,53 @@ jobs: name: FNA3D-SDL3-lib64 path: release/libFNA3D.so.0 + linux-ppc-SDL3: + name: Debian Linux PPC SDL3 + runs-on: ubuntu-latest + container: + image: dockcross/linux-ppc:latest + steps: + - name: Are we really on Debian Linux? + run: cat /etc/os-release + + - name: Install dependencies + run: | + apt install -y chrpath + + - uses: actions/checkout@v4 + with: + submodules: true + + - name: Clone SDL3 + run: git clone --depth 1 --branch preview-$SDL3_VERSION https://github.com/libsdl-org/SDL.git + + - name: Build SDL3 (Debug) + run: | + cd SDL + cmake -B debug -G Ninja . -DCMAKE_BUILD_TYPE=Debug + ninja -C debug + cd .. + + - name: CMake configure (Debug) + run: cmake -B debug -G Ninja . -DCMAKE_BUILD_TYPE=Debug -DBUILD_SDL3=ON -DSDL3_DIR=${GITHUB_WORKSPACE}/SDL/debug + + - name: Build (Debug) + run: ninja -C debug + + - name: CMake configure (Release) + run: cmake -B release -G Ninja . -DCMAKE_BUILD_TYPE=Release -DBUILD_SDL3=ON -DSDL3_DIR=${GITHUB_WORKSPACE}/SDL/debug + + - name: Build (Release) + run: | + ninja -C release + chrpath -d release/libFNA3D.so.0 + + - name: Archive build result + uses: actions/upload-artifact@v4 + with: + name: FNA3D-PPC-SDL3-lib32 + path: release/libFNA3D.so.0 + linux-mingw-SDL3: name: Rocky Linux MinGW SDL3 runs-on: ubuntu-latest