From 7db08b7bd78f042e899aa4128d9764d58d2a40e2 Mon Sep 17 00:00:00 2001 From: stevie littleton Date: Wed, 19 Feb 2025 11:36:42 -0800 Subject: [PATCH 1/2] Added yml file fixed #68 --- .github/workflows/actions.yml | 23 +++++++++++++++++++++++ Makefile | 8 ++++++++ 2 files changed, 31 insertions(+) create mode 100644 .github/workflows/actions.yml create mode 100644 Makefile diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml new file mode 100644 index 0000000..7f89e86 --- /dev/null +++ b/.github/workflows/actions.yml @@ -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: make clean && make \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4c9c489 --- /dev/null +++ b/Makefile @@ -0,0 +1,8 @@ +CC=g++ +all: + $(CC) -Wall *.cpp + +.PHONY: clean + +clean: + rm -f *.o* \ No newline at end of file From eaa6953b3c02e590b7e4f55b604c92d110cd317d Mon Sep 17 00:00:00 2001 From: leonking1990 <65884680+leonking1990@users.noreply.github.com> Date: Wed, 19 Feb 2025 11:40:52 -0800 Subject: [PATCH 2/2] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 121b94d..0fc2034 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ +[![Build C++](https://github.com/leonking1990/MyFave/actions/workflows/actions.yml/badge.svg)](https://github.com/leonking1990/MyFave/actions/workflows/actions.yml) # MyFave This is a simple C++ command line application to maintain a list of your favorites.