From 2c430c0f396ad941f5a63c7d182de50197b5590c Mon Sep 17 00:00:00 2001 From: AviiNL Date: Sun, 10 Sep 2023 20:42:06 +0200 Subject: [PATCH] CI test 1 --- .github/workflows/build.yml | 47 +++++++++++++++++++++++++++++++++++++ 1 file changed, 47 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..bb368a4 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,47 @@ +name: linux_x64 + +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: write + + steps: + - name: Checkout Actions Repository + uses: actions/checkout@v3 + + - name: Install dependencies + run: | + sudo apt-get update && \ + sudo apt install build-essential cmake git ninja-build \ + libavcodec-dev libavformat-dev libswscale-dev libv4l-dev \ + mesa-common-dev xorg-dev libopencv-dev + + - name: Prepare build directory + run: | + mkdir ${GITHUB_WORKSPACE}/build && \ + cd ${GITHUB_WORKSPACE}/build && \ + cmake -G Ninja .. + + - name: build + run: | + cd ${GITHUB_WORKSPACE}/build && \ + ninja + + - name: tar gz the graphite binary + if: success() + run: | + cd ${GITHUB_WORKSPACE}/build/graphite && \ + tar -czvf ${GITHUB_WORKSPACE}/graphite-linux-x86_64.tar.gz graphite + + - name: Upload artifacts + uses: ncipollo/release-action@v1 + with: + commit: main + tag: ${{ github.run_number }} + artifacts: "graphite-linux-x86_64.tar.gz"