Skip to content

Commit

Permalink
CI: Add Linux PowerPC Artifacts (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fancy2209 authored Nov 8, 2024
1 parent 74d45e6 commit 253e46c
Showing 1 changed file with 94 additions and 0 deletions.
94 changes: 94 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,53 @@ jobs:
name: FAudio-SDL2-lib64
path: release/libFAudio.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/libFAudio.so.0
- name: Archive build result
uses: actions/upload-artifact@v4
with:
name: FAudio-PPC-SDL2-lib32
path: release/libFAudio.so.0

linux-mingw:
name: Rocky Linux MinGW
runs-on: ubuntu-latest
Expand Down Expand Up @@ -268,6 +315,53 @@ jobs:
name: FAudio-SDL3-lib64
path: release/libFAudio.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/libFAudio.so.0
- name: Archive build result
uses: actions/upload-artifact@v4
with:
name: FAudio-PPC-SDL3-lib32
path: release/libFAudio.so.0

linux-mingw-SDL3:
name: Rocky Linux MinGW SDL3
runs-on: ubuntu-latest
Expand Down

0 comments on commit 253e46c

Please sign in to comment.