From 12ffb59d8cabf8e9beb9499c72d03f4e10ffc9f1 Mon Sep 17 00:00:00 2001 From: viktorxda <35473052+viktorxda@users.noreply.github.com> Date: Sat, 31 Aug 2024 23:20:46 +0200 Subject: [PATCH] Add build script --- .github/workflows/build.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..1cdf2bd --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,35 @@ +name: Build +on: + push: + branches: + - master + pull_request: + branches: + - master + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Build + run: | + sudo apt-get update + sudo apt-get install libdrm-dev libcairo-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libunwind-dev + git clone https://github.com/rockchip-linux/mpp --depth 1 + cd mpp + cmake -B build + sudo cmake --build build --target install + cd .. + cmake -B build + cmake --build build + + - name: Upload + if: github.event_name != 'pull_request' + uses: softprops/action-gh-release@v2 + with: + tag_name: latest + files: build/fpvue