From 8c3b9cadec1d0b15d3b96185481a7a5bb697258d Mon Sep 17 00:00:00 2001 From: Luke Maloney Date: Wed, 25 Sep 2024 11:10:27 -0700 Subject: [PATCH] ci: implemented github actions for dependency install and build, closes #1 --- .github/workflows/actions.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/actions.yml diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml new file mode 100644 index 0000000..f3b8b1c --- /dev/null +++ b/.github/workflows/actions.yml @@ -0,0 +1,23 @@ +name: Build C++ + +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