From 0025deb1d0b277b67c1fe55825f0d2d769b091d7 Mon Sep 17 00:00:00 2001 From: Nathanne Isip Date: Sat, 7 Sep 2024 22:29:25 +0800 Subject: [PATCH] Initial GitHub action build workflow pipeline. --- .github/workflows/build_ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/build_ci.yml diff --git a/.github/workflows/build_ci.yml b/.github/workflows/build_ci.yml new file mode 100644 index 0000000..cef6fa9 --- /dev/null +++ b/.github/workflows/build_ci.yml @@ -0,0 +1,31 @@ +name: Build CI + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Get build dependencies + run: sudo apt install build-essential make -y + + - name: Build Zhivo + run: | + chmod +x build.sh + ./build.sh + + - name: Build verification + run: | + ls dist -ral + find dist | sort | sed -e "s/[^-][^\/]*\// |/g" -e "s/|\([^ ]\)/|-\1/" + + - name: Build test + run: | + ./dist/zhivo