Skip to content

Commit

Permalink
CI: Add PPC Artifacts (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fancy2209 authored Nov 9, 2024
1 parent 48d35da commit f84b403
Showing 1 changed file with 95 additions and 0 deletions.
95 changes: 95 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f84b403

Please sign in to comment.