Skip to content

Adding CI workflow

Adding CI workflow #1

Workflow file for this run

name: Build C++

Check failure on line 1 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

Invalid `steps` value - steps should be list of `uses` or `run` items
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