From b0123d3db3dd71ecb3eb4641da61e480689fe71d Mon Sep 17 00:00:00 2001 From: William Casarin Date: Thu, 23 Nov 2023 13:32:31 -0800 Subject: [PATCH] ci: add flatcc to github action --- .github/workflows/c-cpp.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 3002427..fe5e2a8 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -2,7 +2,7 @@ name: C/C++ CI on: push: - branches: [ "master" ] + branches: [ "master", "ci" ] pull_request: branches: [ "master" ] @@ -13,5 +13,20 @@ jobs: steps: - uses: actions/checkout@v3 + + # Step to install required tools + - name: Install required tools + run: | + sudo apt-get update + sudo apt-get install -y build-essential git cmake ninja-build flatbuffers + + # Step to clone and build flatcc + - name: Build flatcc + run: | + git clone https://github.com/dvidelabs/flatcc.git + cd flatcc + ./scripts/build.sh + cp bin/flatcc /usr/bin + - name: make check run: make check