diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 3002427..6443aff 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-compiler + + # 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