From 50e0bcb9e15e565ade8c2f56ee5834ed3d50510e Mon Sep 17 00:00:00 2001 From: Helienzo Date: Tue, 28 Jan 2025 10:52:52 +0100 Subject: [PATCH] Create c-cpp.yml --- .github/workflows/c-cpp.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/c-cpp.yml diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml new file mode 100644 index 0000000..adf0ef7 --- /dev/null +++ b/.github/workflows/c-cpp.yml @@ -0,0 +1,30 @@ +name: C/C++ CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Create build directory + run: mkdir -p build + + - name: Run CMake + working-directory: build + run: cmake .. -DSTATIC_QUEUE_TEST=ON + + - name: Build the project + working-directory: build + run: make + + - name: Run tests + working-directory: build + run: ./test_static_queue