From 5fefb8482c7595c1fcae395c82c06b9d27bb07e0 Mon Sep 17 00:00:00 2001 From: Kamisato Date: Wed, 18 Feb 2026 11:44:54 -0800 Subject: [PATCH 1/2] Resolve Issue #95 adding CI/CD --- .github/workflows/build.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..1e12785 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,23 @@ +name: compile + +on: + push: + branches: [ devops ] + pull_request: + branches: [ main ] + +jobs: + install: + runs-on: ubuntu-latest + steps: + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y -f build-essential g++ cmake + build: + needs: install + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Build project + run: g++ -std=c++17 main.cpp From 0b5275ed9bfad4c95186302064a143c85ac41bf5 Mon Sep 17 00:00:00 2001 From: Kamisato Date: Wed, 18 Feb 2026 11:59:35 -0800 Subject: [PATCH 2/2] Add build status badge to README --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bbcf55a..4cbcf00 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # autovalidate +[![compile](https://github.com/ChicoState/autovalidate/actions/workflows/build.yml/badge.svg)](https://github.com/ChicoState/autovalidate/actions/workflows/build.yml) I like that app too! -This repo is compatible with the [cpp-container docker container](https://github.com/ChicoState/cpp-container). \ No newline at end of file +This repo is compatible with the [cpp-container docker container](https://github.com/ChicoState/cpp-container).