From 007c03c7bb86f24f28b7ca38289372788be3ea18 Mon Sep 17 00:00:00 2001 From: Ningyuan Li Date: Thu, 31 Oct 2024 17:02:10 +0900 Subject: [PATCH] build both original abi and webOS abi version --- .github/workflows/webos.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/webos.yml b/.github/workflows/webos.yml index 2a7ed6a76dbb4..0b8d041cb3b82 100644 --- a/.github/workflows/webos.yml +++ b/.github/workflows/webos.yml @@ -9,6 +9,9 @@ on: jobs: Build: runs-on: ubuntu-latest + strategy: + matrix: + webos-abi: [ 'ON', 'OFF' ] steps: - uses: actions/checkout@v4 @@ -31,7 +34,9 @@ jobs: run: | cmake -B build -S . \ -DCMAKE_TOOLCHAIN_FILE=/tmp/arm-webos-linux-gnueabi_sdk-buildroot/share/buildroot/toolchainfile.cmake \ - -DCMAKE_BUILD_TYPE=Release -DWEBOS=ON + -DCMAKE_BUILD_TYPE=Release -DWEBOS=ON -DSDL_OFFSCREEN=OFF -DSDL_DISKAUDIO=OFF \ + -DSDL_DUMMYAUDIO=OFF -DSDL_DUMMYVIDEO=OFF -DSDL_KMSDRM=OFF -DSDL_VENDOR_INFO=webOS\ Backport \ + -DSDL_WEBOS_BROKEN_ABI=${{ matrix.webos-abi }} - name: Build (CMake) run: cmake --build build/ --config Release --verbose --parallel @@ -42,7 +47,13 @@ jobs: run: | cmake --install build/ --prefix dist cd dist - tar -czf ../SDL2-$(./bin/sdl2-config --version)-webos.tar.gz . + if [ "${BUILD_WEBOS_ABI}" == "ON" ]; then + tar -czf ../SDL2-$(./bin/sdl2-config --version)-webos-abi.tar.gz . + else + tar -czf ../SDL2-$(./bin/sdl2-config --version)-webos.tar.gz . + fi + env: + BUILD_WEBOS_ABI: ${{ matrix.webos-abi }} - name: Release if: github.event_name == 'release'