From 2770de6c582e79587986c1c526468f8806b6905d Mon Sep 17 00:00:00 2001 From: "neilmcauliffe2@gmail.com" Date: Wed, 24 Sep 2025 11:23:53 -0700 Subject: [PATCH 1/4] nothing escape closes #1 --- main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 982d05f..9fc713b 100644 --- a/main.cpp +++ b/main.cpp @@ -19,14 +19,16 @@ int main(){ pick = rand() % 4; cout << "What are you listening to?\n"; getline(cin,input); + if(input == "nothing"){return 0;} cout << VALIDATION[pick] << "! Let's listen to more\n"; do{ cout << "What's next?\n"; getline(cin,input); + if(input == "nothing"){return 0;} pick = rand() % 4; cout << VALIDATION[pick] << "!\n"; }while( input != "nothing" ); return 0; -} \ No newline at end of file +} From b5de27448b2df90ed3d5eb0228bee6927c67efc1 Mon Sep 17 00:00:00 2001 From: "neilmcauliffe2@gmail.com" Date: Wed, 24 Sep 2025 11:36:21 -0700 Subject: [PATCH 2/4] added ci workflow closes #2 --- .github/workflows/compile.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/compile.yml diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml new file mode 100644 index 0000000..36302de --- /dev/null +++ b/.github/workflows/compile.yml @@ -0,0 +1,22 @@ +name: Build C++ + +on: + push: + branches: "**" + 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 From 6d02465c585df944245589ce531c9ea528e783e2 Mon Sep 17 00:00:00 2001 From: Neil McAuliffe Date: Wed, 24 Sep 2025 11:40:18 -0700 Subject: [PATCH 3/4] Updated compile.yml forgot the run --- .github/workflows/compile.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 36302de..6e03bfb 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -20,3 +20,5 @@ jobs: steps: - uses: actions/checkout@v4 - name: Build project + - run: make + From 8e969b66de85c7c58626a7af304d4b561bece9d7 Mon Sep 17 00:00:00 2001 From: Neil McAuliffe Date: Wed, 24 Sep 2025 11:41:59 -0700 Subject: [PATCH 4/4] Update README.md added workflow badge --- README.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/README.md b/README.md index bbcf55a..9458e9d 100644 --- a/README.md +++ b/README.md @@ -1,5 +1 @@ -# autovalidate - -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 +[![.github/workflows/compile.yml](https://github.com/Atlas-Artemis/autovalidate/actions/workflows/compile.yml/badge.svg)](https://github.com/Atlas-Artemis/autovalidate/actions/workflows/compile.yml)