From 79dd486c61a8ac71d633ba4517c02c719ae2a81a Mon Sep 17 00:00:00 2001 From: Kendal Hasek <93564097+khasek@users.noreply.github.com> Date: Wed, 20 Sep 2023 11:20:49 -0700 Subject: [PATCH] Adding CI workflow --- .github/workflows/build.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..5e6f9a3 --- /dev/null +++ b/.github/workflows/build.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 colorHex