From d82fa28c62aa80d53427657756e87aec804ffc92 Mon Sep 17 00:00:00 2001 From: Balaji Sivasakthi Date: Tue, 12 Mar 2024 02:14:52 +0530 Subject: [PATCH] build.yaml --- .github/workflows/c-cpp.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index c203b1b..66da5a1 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -1,15 +1,26 @@ -name: C/C++ CI +name: Build on: push: - branches: [ "main" ] + branches: + - main pull_request: - branches: [ "main" ] + branches: + - main jobs: build: runs-on: ubuntu-latest + steps: - - uses: actions/checkout@v3 - - name: make + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Install build dependencies + run: sudo apt-get update && sudo apt-get install -y build-essential + + - name: Build code run: make all + + - name: Run tests + run: make run