Merge tag 'release-2.30.5' into webOS-2.30.x #52
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
name: Build (webOS) | |
on: | |
push: | |
pull_request: | |
release: | |
types: [ published ] | |
jobs: | |
Build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- 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 |