Skip to content

updated workflow

updated workflow #70

Workflow file for this run

name: Build (webOS)
on:
push:
pull_request:
release:
types: [ published ]
jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download webOS NDK
uses: robinraju/[email protected]
with:
repository: "openlgtv/buildroot-nc4"
latest: true
fileName: "arm-webos-linux-gnueabi_sdk-buildroot.tar.gz"
out-file-path: "/tmp"
- name: Extract webOS NDK
working-directory: /tmp
run: |
tar xzf arm-webos-linux-gnueabi_sdk-buildroot.tar.gz
./arm-webos-linux-gnueabi_sdk-buildroot/relocate-sdk.sh
- name: Configure (CMake)
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
- name: Build (CMake)
run: cmake --build build/ --config Release --verbose --parallel
- name: Package (Release Only)
if: github.event_name == 'release'
shell: bash
run: |
cmake --install build/ --prefix dist
cd dist
tar -czf ../SDL2-$(./bin/sdl2-config --version)-webos.tar.gz .
- name: Release
if: github.event_name == 'release'
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.event.release.tag_name }}
allowUpdates: true
omitNameDuringUpdate: true
omitBody: true
omitPrereleaseDuringUpdate: true
artifacts: SDL2-*-webos.tar.gz