forked from libsdl-org/SDL
-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0a83965
commit 69a583b
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Build (Nintendo GameCube) | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
ngcn: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: devkitpro/devkitppc:latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install build requirements | ||
run: | | ||
apt update | ||
apt install ninja-build | ||
- name: Configure CMake | ||
run: | | ||
/opt/devkitpro/portlibs/gamecube/bin/powerpc-eabi-cmake -S . -B build -G Ninja \ | ||
- name: Build | ||
run: cmake --build build --verbose --parallel | ||
- name: Install CMake | ||
run: | | ||
echo "SDL2_DIR=$(pwd)/prefix" >> $GITHUB_ENV | ||
cmake --install build/ | ||
( cd prefix; find ) | LC_ALL=C sort -u | ||
- name: Verify CMake configuration files | ||
run: | | ||
/opt/devkitpro/portlibs/gamecube/bin/powerpc-eabi-cmake -S cmake/test -B cmake_config_build -G Ninja \ | ||
-DTEST_SHARED=FALSE \ | ||
-DCMAKE_PREFIX_PATH=${{ env.SDL2_DIR }} \ | ||
-DCMAKE_BUILD_TYPE=Release | ||
cmake --build cmake_config_build --verbose | ||
- name: Extract CC/CXX/CFLAGS/CXXFLAGS from CMake toolchain | ||
run: | | ||
/opt/devkitpro/portlibs/gamecube/bin/powerpc-eabi-cmake -S .github/cmake -B /tmp/cmake_extract \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DVAR_PATH=/tmp/ngc_env.txt | ||
cat /tmp/ngc_env.txt >> $GITHUB_ENV | ||
- name: Verify sdl2-config | ||
run: | | ||
export PATH=${{ env.SDL2_DIR }}/bin:$PATH | ||
cmake/test/test_sdlconfig.sh | ||
- name: Verify sdl2.pc | ||
run: | | ||
export PKG_CONFIG_PATH=${{ env.SDL2_DIR }}/lib/pkgconfig | ||
cmake/test/test_pkgconfig.sh |