From 67db72d6ccdbf36af92913b884dd0d63fc40bc98 Mon Sep 17 00:00:00 2001 From: llydon Date: Wed, 24 Sep 2025 11:50:25 -0700 Subject: [PATCH] Create compile.yml for github actions, closes #2 --- .github/workflows/compile.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/compile.yml diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml new file mode 100644 index 0000000..7058886 --- /dev/null +++ b/.github/workflows/compile.yml @@ -0,0 +1,25 @@ +name: compile + +on: + push: + branches: [ "devops" ] + 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 + g++ -std=c++17 main.cpp + build: + needs: install + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Build project + run: g++ -std=c++17 main.cpp +