-
Notifications
You must be signed in to change notification settings - Fork 35
69 lines (55 loc) · 1.88 KB
/
build_piccap.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Build PicCap with hyperion-webos and create IPK
on:
push:
pull_request:
workflow_dispatch:
env:
TOOLCHAIN_URL: https://github.com/openlgtv/buildroot-nc4/releases/download/webos-c592d84/arm-webos-linux-gnueabi_sdk-buildroot.tar.gz
TOOLCHAIN_SHA256: be5b4249177fc31b3f0120106c761f42ade54fd609a3bd090852899bbdd680b9
TOOLCHAIN_DIR: /opt/arm-webos-linux-gnueabi_sdk-buildroot
CMAKE_TOOLCHAIN_FILE: /opt/arm-webos-linux-gnueabi_sdk-buildroot/share/buildroot/toolchainfile.cmake
jobs:
build-all:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install webOS CLI
run: sudo npm install --location=global @webosose/ares-cli
- name: Install dependencies
working-directory: ${{github.workspace}}
run: npm install
- name: Download and unpack toolchain
working-directory: /opt
run: |
wget -q -O toolchain.tar.gz ${TOOLCHAIN_URL}
echo "${TOOLCHAIN_SHA256} toolchain.tar.gz"|sha256sum -c -
tar xf toolchain.tar.gz
- name: Relocate toolchain
working-directory: ${{ env.TOOLCHAIN_DIR }}
run: |
./relocate-sdk.sh
- name: Check CMAKE Version
run: which cmake && cmake --version
- name: Build PicCap, hyperion-webos and copy files
working-directory: ${{github.workspace}}
run: npm run-script build-all
- name: Package Frontend and Service
run: npm run-script package
- name: List files
run: find . && find ./build
- name: Upload PicCap IPK
uses: actions/upload-artifact@v3
with:
name: piccap_ipk
path: ./build/*.ipk
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ./build/*.ipk