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