From 78c33c6c54a7d019a47c5d19be8677290eed84e5 Mon Sep 17 00:00:00 2001 From: ElianRamirez Date: Wed, 24 Sep 2025 11:41:56 -0700 Subject: [PATCH 1/2] feat: added ci file for compilation (resolves #2) --- .github/workflows/ci.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/ci.yml 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 From c948cad78d45bebd8d88792448edc1b393324fb9 Mon Sep 17 00:00:00 2001 From: ElianRamirez Date: Wed, 24 Sep 2025 11:49:10 -0700 Subject: [PATCH 2/2] docs: added CI badge --- README.md | 2 ++ 1 file changed, 2 insertions(+) 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