From 4b1bd7352d70a8c5d4d0eb0600f54487fc73d394 Mon Sep 17 00:00:00 2001 From: ImagenL Date: Wed, 24 Sep 2025 11:42:52 -0700 Subject: [PATCH] created CI to build main, closes #2 --- compile.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 compile.yml diff --git a/compile.yml b/compile.yml new file mode 100644 index 0000000..e3ae9eb --- /dev/null +++ b/compile.yml @@ -0,0 +1,16 @@ +name: compile #naming the pipeline + +on: #dictating when this should run + push: + branches: [ devops ] #whenever anything is pushed to devops + pull_request: + branches: [ main ] #whenever a pull_request is for main + +jobs: + build: #this could've been on the same line as above, but wanted to show that you can have jobs that don't run unless other jobs have run + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 #checking out the code from our repository and putting that entire repository into our Docker container + - name: Build project #then build the project + run: g++ -std=c++17 main.cpp +