Skip to content
This repository has been archived by the owner on Jul 23, 2023. It is now read-only.

Merge pull request #15 from throwaway96/ndl-dm-compat #50

Merge pull request #15 from throwaway96/ndl-dm-compat

Merge pull request #15 from throwaway96/ndl-dm-compat #50

Workflow file for this run

name: Build samples
on:
push:
pull_request:
jobs:
build-native-components:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Download webOS NDK
run: wget -q https://github.com/webosbrew/meta-lg-webos-ndk/releases/download/1.0.g-rev.4/webos-sdk-x86_64-armv7a-neon-toolchain-1.0.g.sh -P ${{github.workspace}}/temp
- name: Install webOS NDK
run: chmod 755 ${{github.workspace}}/temp/webos-sdk-x86_64-armv7a-neon-toolchain-1.0.g.sh && sudo ${{github.workspace}}/temp/webos-sdk-x86_64-armv7a-neon-toolchain-1.0.g.sh -y
- name: Download restore_path.sh script to use recent CMake
run: wget -q https://raw.githubusercontent.com/webosbrew/dev-goodies/main/restore-path.sh -P /opt/webos-sdk-x86_64/1.0.g/sysroots/x86_64-webossdk-linux/environment-setup.d
- name: Initialize NDK Environments
run: env -i bash -c '. /opt/webos-sdk-x86_64/1.0.g/environment-setup-armv7a-neon-webos-linux-gnueabi && env' >> $GITHUB_ENV
- name: Create build directories
run: |
mkdir ${{github.workspace}}/build
- name: Build samples
working-directory: ${{github.workspace}}/build
shell: bash
run: |
cmake ..
make sample-dile-vt-capture
make sample-gm-capture
make sample-gmw-capture
make sample-halgal-capture
make sample-halgal-captureWithVideo
make sample-vt-capture
# NDL depends on having WebOS version defined @ build time
# make sample-ndl-webos4
# vtcapture is broken, uses OpenCV library atm
# make sample-vtcapture-capture
- name: List files
run: find ${{github.workspace}}/build/
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: tv-native-apis-samples
path: |
${{github.workspace}}/build/samples/halgal/capture/halgal-capture
${{github.workspace}}/build/samples/halgal/capture/halgal-captureWithoutVideo
${{github.workspace}}/build/samples/gm/capture/gm-capture
${{github.workspace}}/build/samples/vt/capture/capture
${{github.workspace}}/build/samples/gm-wayland/capture/gmw-capture