Skip to content

Update actions.yml to do actions on main branch #4

Update actions.yml to do actions on main branch

Update actions.yml to do actions on main branch #4

Workflow file for this run

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 main