From 12c71034d595e63533d2bdb5df1c1d90e674dc85 Mon Sep 17 00:00:00 2001 From: Jordan Bailey Date: Wed, 18 Feb 2026 13:22:10 -0800 Subject: [PATCH 1/2] Quit on first input, resolved #96 --- main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.cpp b/main.cpp index 690cf17..837eb0a 100644 --- a/main.cpp +++ b/main.cpp @@ -24,6 +24,11 @@ int main(){ pick = rand() % VALIDATION.size(); cout << "What are you listening to?\n"; input = get_input_in_lowercase(); + if (input == "nothing") + { + exit(0); + } + cout << VALIDATION[pick] << "! Let's listen to more\n"; do{ From 13565b1c2c51cbeabfd2c1206bd2234e3034f0f7 Mon Sep 17 00:00:00 2001 From: Jordan Bailey Date: Wed, 18 Feb 2026 13:29:28 -0800 Subject: [PATCH 2/2] Add GitHub Actions CI workflow --- github/workflows/actions.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 github/workflows/actions.yaml diff --git a/github/workflows/actions.yaml b/github/workflows/actions.yaml new file mode 100644 index 0000000..e21693b --- /dev/null +++ b/github/workflows/actions.yaml @@ -0,0 +1,23 @@ +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 + run: g++ -std=c++17 main.cpp \ No newline at end of file