Skip to content

Commit 12ffb59

Browse files
committed
Add build script
1 parent 3bcd01c commit 12ffb59

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/build.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
workflow_dispatch:
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
18+
- name: Build
19+
run: |
20+
sudo apt-get update
21+
sudo apt-get install libdrm-dev libcairo-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libunwind-dev
22+
git clone https://github.com/rockchip-linux/mpp --depth 1
23+
cd mpp
24+
cmake -B build
25+
sudo cmake --build build --target install
26+
cd ..
27+
cmake -B build
28+
cmake --build build
29+
30+
- name: Upload
31+
if: github.event_name != 'pull_request'
32+
uses: softprops/action-gh-release@v2
33+
with:
34+
tag_name: latest
35+
files: build/fpvue

0 commit comments

Comments
 (0)