From 45c4b2a53f90fe85bbe3d53857d0ca431ab7ea0e Mon Sep 17 00:00:00 2001 From: Joshua Gonzalez Date: Wed, 17 Sep 2025 02:16:19 -0700 Subject: [PATCH 1/4] Add GitHub Actions CI workflow (Makefile) --- .github/workflows/build.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 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..f4f77eb --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,24 @@ +name: C++ CI (Make) + +on: + push: + branches: [ "main", "ci/cd" ] + # If you want CI on PRs too, uncomment: + # pull_request: + # branches: [ "main", "ci/cd" ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install toolchain + run: | + sudo apt-get update + sudo apt-get install -y build-essential + + - name: Build (Makefile) + run: | + make -j"$(nproc)" From d36816881c945eecfd62859305cd9025538d21e6 Mon Sep 17 00:00:00 2001 From: Joshua Gonzalez Date: Wed, 17 Sep 2025 02:20:37 -0700 Subject: [PATCH 2/4] Add CI status badge --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 5069483..b7abe29 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,10 @@ This is a basic Docker container for a C++ program +## Status Badge + +[![C++ CI (Make)](https://github.com/jgonzalez98-software/cpp-container/actions/workflows/build.yml/badge.svg)](https://github.com/jgonzalez98-software/cpp-container/actions/workflows/build.yml) + ## Getting Started Build the image from `Dockerfile` with the command: From 005256fe438a4ee66f70cb55e904dc3d4beac2a0 Mon Sep 17 00:00:00 2001 From: Joshua Gonzalez Date: Wed, 17 Sep 2025 02:23:14 -0700 Subject: [PATCH 3/4] CI badge --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index b7abe29..5053442 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,6 @@ This is a basic Docker container for a C++ program -## Status Badge [![C++ CI (Make)](https://github.com/jgonzalez98-software/cpp-container/actions/workflows/build.yml/badge.svg)](https://github.com/jgonzalez98-software/cpp-container/actions/workflows/build.yml) From b939981fbf8d7e9e3677fd2a6ed85c4b78eb535c Mon Sep 17 00:00:00 2001 From: jgonzalez98-software Date: Wed, 17 Sep 2025 11:28:01 -0700 Subject: [PATCH 4/4] Update build.yml --- .github/workflows/build.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f4f77eb..4aab7a2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,9 +3,6 @@ name: C++ CI (Make) on: push: branches: [ "main", "ci/cd" ] - # If you want CI on PRs too, uncomment: - # pull_request: - # branches: [ "main", "ci/cd" ] jobs: build: