-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (41 loc) · 1.18 KB
/
gst.wasm-build.yaml
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
name: GStreamer Build
on:
push:
branches:
- main
paths:
- 'cerbero/**'
- 'samples/**'
pull_request:
branches:
- '**'
paths:
- 'cerbero/**'
- 'samples/**'
jobs:
build:
runs-on: 'ubuntu-latest'
steps: # these steps are used in README.md to describe preparation; keep in-sync, please!
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Clone cerbero
run: |
git clone https://github.com/fluendo/cerbero cerbero-src -b gst.wasm --depth=1
- name: Bootstrap
run: |
./cerbero-src/cerbero-uninstalled -c build/gst.wasm.cbc bootstrap
- name: Build GStreamer
run: |
./cerbero-src/cerbero-uninstalled -c build/gst.wasm.cbc build-deps gst.wasm
- name: Build samples
run: |
./cerbero-src/cerbero-uninstalled -c build/gst.wasm.cbc build gst.wasm
- name: Create tarball
run: |
tar -cvJf gst.wasm.tar.xz -C build/build/gst.wasm_linux_web_wasm32/dist/web_wasm32/ -c .
- name: Upload gst.wasm
uses: actions/upload-artifact@v4
with:
name: gst.wasm
path: gst.wasm.tar.xz