From eb87d09fce3000e97fcf2dd7a5c9738fe332ba73 Mon Sep 17 00:00:00 2001 From: Erik Date: Mon, 17 Feb 2025 11:08:39 -0800 Subject: [PATCH 1/4] adding yml file --- .github/workflows/helloworld.yml | 45 ++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/helloworld.yml diff --git a/.github/workflows/helloworld.yml b/.github/workflows/helloworld.yml new file mode 100644 index 0000000..a8353f7 --- /dev/null +++ b/.github/workflows/helloworld.yml @@ -0,0 +1,45 @@ +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++ main.cpp -o hellobro From f105bdf38d68f4d225f5212bcbbd181527d5a0ea Mon Sep 17 00:00:00 2001 From: Erik Date: Mon, 17 Feb 2025 11:17:00 -0800 Subject: [PATCH 2/4] updating readme.md build status badge --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4966234..6bfd017 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Build C++](https://github.com/Cowpriest/HelloWorld/actions/workflows/helloworld.yml/badge.svg)](https://github.com/Cowpriest/HelloWorld/actions/workflows/helloworld.yml) + # Hello World This program demonstrates printing `Hello World` to the command line in C++. @@ -16,4 +18,4 @@ docker run -v "$(pwd)":/usr/src -it cpp-container ``` docker run -v "$(pwd)":/usr/src -it cpp-container sh -``` \ No newline at end of file +``` From e2be541a59218027af481e21629cae9ae2c848d2 Mon Sep 17 00:00:00 2001 From: Erik Date: Mon, 17 Feb 2025 13:23:48 -0800 Subject: [PATCH 3/4] adding s to world --- main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index b22f491..3c53887 100644 --- a/main.cpp +++ b/main.cpp @@ -1,6 +1,6 @@ #include int main(){ - std::cout<<"Hello World!\n"; + std::cout<<"Hello Worlds!\n"; return 0; -} \ No newline at end of file +} From 5a989b8017b8777c27246b24897c31e921ab0c75 Mon Sep 17 00:00:00 2001 From: Erik Date: Mon, 17 Feb 2025 13:30:04 -0800 Subject: [PATCH 4/4] removing yml --- .github/workflows/helloworld.yml | 45 -------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 .github/workflows/helloworld.yml diff --git a/.github/workflows/helloworld.yml b/.github/workflows/helloworld.yml deleted file mode 100644 index a8353f7..0000000 --- a/.github/workflows/helloworld.yml +++ /dev/null @@ -1,45 +0,0 @@ -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++ main.cpp -o hellobro