Skip to content
Open
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
16 changes: 16 additions & 0 deletions compile.yml
Original file line number Diff line number Diff line change
@@ -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