Skip to content

Commit

Permalink
Update c-cpp.yml that resolves ChicoState#1
Browse files Browse the repository at this point in the history
  • Loading branch information
Aloo32 authored Sep 25, 2024
1 parent 4b34b38 commit 4d70123
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
name: C/C++ CI
name: Build C++

on:
push:
branches: [ "main" ]
branches: [ main ]
pull_request:
branches: [ "main" ]
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: configure
run: ./configure
- name: make
run: make
- name: make check
run: make check
- name: make distcheck
run: make distcheck
- name: Build project
run: g++ main.cpp --std=c++17 -o MyFave
- uses: actions/checkout@v3
- name: Build project
run: g++ main.cpp --std=c++17 -o MyFave

0 comments on commit 4d70123

Please sign in to comment.