diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..4bf2904 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,25 @@ +name: Build + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y cmake build-essential libssl-dev + + - name: Configure CMake + run: cmake -B build -DCMAKE_BUILD_TYPE=Release + + - name: Build + run: cmake --build build --config Release + diff --git a/README.md b/README.md index 19a20f6..381869b 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Claw Code (C++ Educational Skeleton) 🛠️🤖 +![Build](https://github.com/Rayed-Hasan/claw-code-cpp/actions/workflows/build.yml/badge.svg) + ![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg) ![C++20](https://img.shields.io/badge/C++-20-blue.svg)