From a18120746fee1eeb14a46b9d43a782d08d10d030 Mon Sep 17 00:00:00 2001 From: archBluewolf Date: Mon, 21 Sep 2026 11:34:40 -0700 Subject: [PATCH] Add GitHub Actions workflow for C++ build --- .github/workflows/main.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..561064a7 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,24 @@ +name: Build C++ + +on: + push: + branches: "**" + pull_request: + branches: [ main ] + workflow_dispatch: + +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@v7 + - name: Build project + run: g++ -std=c++17 main.cpp