Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: compile

on:
push:
branches: [ devops ]
pull_request:
branches: [ main ]
Comment on lines +1 to +7
Copy link

Copilot AI Feb 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR description/Issue #95 mention adding a status badge for the compile workflow to README.md, but this PR only adds the workflow file and does not update README.md (current README has no badge). Either include the README badge change or update the PR description/linked issue scope accordingly.

Copilot uses AI. Check for mistakes.

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
Comment on lines +10 to +21
Copy link

Copilot AI Feb 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The install and build jobs run on separate fresh runners, so packages installed in install are not available in build. As written, needs: install only enforces ordering and adds time without affecting the build environment. Consider merging install+build into a single job (checkout -> apt-get -> g++) or install in the build job (or drop the install step if relying on ubuntu-latest toolchain).

Suggested change
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
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y -f build-essential g++ cmake

Copilot uses AI. Check for mistakes.
- name: Build project
run: g++ -std=c++17 main.cpp
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# autovalidate
[![compile](https://github.com/ChicoState/autovalidate/actions/workflows/build.yml/badge.svg)](https://github.com/ChicoState/autovalidate/actions/workflows/build.yml)

I like that app too!

This repo is compatible with the [cpp-container docker container](https://github.com/ChicoState/cpp-container).
This repo is compatible with the [cpp-container docker container](https://github.com/ChicoState/cpp-container).