diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000000..89182266bc1f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,13 @@ +name: CI +on: + push: + branches: [main, master] + pull_request: + branches: [main, master] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: mkdir build && cd build && cmake .. && make -j$(nproc) + - run: cd build && make test diff --git a/README.md b/README.md index da3c9613c743..b531492fb4bf 100644 --- a/README.md +++ b/README.md @@ -20,3 +20,21 @@ Summary of guidelines: * Include tests and documentation; * Clean up "oops" commits before submitting; * Follow the coding style guide. + +## Getting Started + +### Prerequisites +- CMake +- C++ compiler + +### Install +```bash +mkdir build && cd build +cmake .. +make -j$(nproc) +``` + +### Test +```bash +make test +``` diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 000000000000..30d3e1021f65 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,5 @@ +services: + opencv: + build: . + volumes: + - .:/app