From 961b71c104fdc77ab8f227021db98c9b62ce552b Mon Sep 17 00:00:00 2001 From: acsanden <123776505+acsanden@users.noreply.github.com> Date: Tue, 3 Oct 2023 14:11:18 -0700 Subject: [PATCH] fixes issue #2 -Create main.yml --- .github/workflows/main.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..8a3261a --- /dev/null +++ b/.github/workflows/main.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@v1 + - name: Build project + run: g++ c.cpp -std=c++17 -o ColorHex