diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..4d2d9c2 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,23 @@ +name: compile + +on: + pull_request: + branches: [main] + push: + branches: [devops] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Check out repo + uses: actions/checkout@v4 + + - name: build + run: | + sudo apt-get update + sudo apt-get install -y g++ + + - name: compile + run: g++ -std=c++17 main.cpp \ No newline at end of file diff --git a/README.md b/README.md index bbcf55a..24c23b0 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,6 @@ I like that app too! +[![compile](https://github.com/eramirez38/autovalidate/actions/workflows/ci.yml/badge.svg)](https://github.com/eramirez38/autovalidate/actions/workflows/ci.yml) + This repo is compatible with the [cpp-container docker container](https://github.com/ChicoState/cpp-container). \ No newline at end of file