SDL/.github/workflows/haiku.yml

58 lines
1.8 KiB
YAML
Raw Permalink Normal View History

name: Build (Haiku)
2022-12-02 12:07:36 -07:00
on: [push, pull_request]
2022-12-02 12:07:36 -07:00
jobs:
haiku:
runs-on: ubuntu-latest
name: Haiku
container: haiku/cross-compiler:x86_64-r1beta4
2022-12-02 12:07:36 -07:00
steps:
2024-01-25 18:33:20 -07:00
- uses: actions/checkout@v4
- name: Setup dependencies
2022-12-02 12:07:36 -07:00
run: |
apt-get install pkg-config -y
- name: Configure Haiku environment variables
run: |
echo "CC=x86_64-unknown-haiku-gcc" >> $GITHUB_ENV
echo "CXX=x86_64-unknown-haiku-g++" >> $GITHUB_ENV
2022-12-02 12:07:36 -07:00
- name: Configure (CMake)
run: |
cmake -S . -B build -GNinja \
-Wdeprecated -Wdev -Werror \
-DSDL_SHARED=ON \
-DSDL_STATIC=ON \
-DSDL_TESTS=ON \
-DSDL_WERROR=ON \
-DSDL_INSTALL_TESTS=ON \
-DSDL_VENDOR_INFO=Github_Workflow \
-DCMAKE_INSTALL_PREFIX=cmake_prefix \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_SYSTEM_NAME=Haiku
2022-12-02 12:07:36 -07:00
- name: Build (CMake)
run: |
cmake --build build/ --config Release --verbose --parallel
2022-12-02 12:07:36 -07:00
- name: Install (CMake)
run: |
echo "SDL3_DIR=$(pwd)/cmake_prefix" >> $GITHUB_ENV
cmake --install build/ --config Release
- name: Package (CPack)
run: |
cmake --build build/ --config Release --target package
2022-12-02 12:07:36 -07:00
- name: Verify CMake configuration files
run: |
cmake -S cmake/test -B cmake_config_build -G Ninja \
2022-12-02 12:07:36 -07:00
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_PREFIX_PATH=${{ env.SDL3_DIR }} \
-DCMAKE_SYSTEM_NAME=Haiku
cmake --build ./cmake_config_build --verbose
2022-12-02 12:07:36 -07:00
- name: Verify sdl3.pc
run: |
export PKG_CONFIG_PATH=${{ env.SDL3_DIR }}/lib/pkgconfig
cmake/test/test_pkgconfig.sh
2024-01-25 18:33:20 -07:00
- uses: actions/upload-artifact@v4
with:
if-no-files-found: error
name: SDL-haiku
path: build/dist/SDL3*