From de8d08a4c6d64336ecb5a52d95a697760c2c588e Mon Sep 17 00:00:00 2001 From: Alexander Liu Date: Wed, 11 Feb 2026 12:26:37 -0800 Subject: [PATCH] add yml file --- build.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 build.yml diff --git a/build.yml b/build.yml new file mode 100644 index 00000000..b5bf693b --- /dev/null +++ b/build.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: g++ -std=c++17 main.cpp