Skip to content

Adding workflow

Adding workflow #1

Workflow file for this run

me: Build C++

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

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yaml

Invalid workflow file

(Line: 1, Col: 1): Unexpected value 'me', (Line: 1, Col: 1): Required property is missing: jobs
on:
push:
branches: "**"
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@v4
- name: Build project
run: g++ -std=c++17 main.cpp