From 6dafc3f34dddde19db709148a0540c12088eca82 Mon Sep 17 00:00:00 2001 From: cmgomes5 Date: Wed, 25 Sep 2024 11:22:56 -0700 Subject: [PATCH] Added workflow for github actions, first half of Issue #2 --- .github/workflows/workflow.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/workflow.yml diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml new file mode 100644 index 0000000..1f6cc17 --- /dev/null +++ b/.github/workflows/workflow.yml @@ -0,0 +1,24 @@ +name: in_class + +on: + push: + branches: [ main ] + + 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@v3 + - name: Build project + run: g++ main.cpp -std=c++17 -o MyFave \ No newline at end of file