From 5e218f85a143d70eaa8838aec8394c8872f9bdbf Mon Sep 17 00:00:00 2001 From: Callan Gray <7478405+calgray@users.noreply.github.com> Date: Fri, 7 Aug 2026 17:36:53 +0800 Subject: [PATCH 1/2] Add docker-image CI Action --- .github/workflows/docker-image.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..1c28057 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,18 @@ +name: Docker Image CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Build the Docker image + run: docker build . --file Dockerfile --tag cmake-cpp-modules-template:$(date +%s) From 7238f935c5acd4fa100c16d32db5b1a4ba8a6996 Mon Sep 17 00:00:00 2001 From: Callan Gray Date: Fri, 7 Aug 2026 17:49:51 +0800 Subject: [PATCH 2/2] Add ci jobs for gnu and clang docker Signed-off-by: Callan Gray --- .github/workflows/docker-image.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 1c28057..0861f1b 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -7,12 +7,15 @@ on: branches: [ "main" ] jobs: - - build: - + build-gnu: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - name: Build the GNU Docker image + run: docker build . --file docker/Dockerfile-gcc --tag cmake-cpp-modules-template-gcc:$(date +%s) + build-clang: runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Build the Docker image - run: docker build . --file Dockerfile --tag cmake-cpp-modules-template:$(date +%s) + - uses: actions/checkout@v5 + - name: Build the Clang Docker image + run: docker build . --file docker/Dockerfile-clang --tag cmake-cpp-modules-template-clang:$(date +%s)