Skip to content

Commit

Permalink
Create build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gmh5225 authored May 27, 2024
1 parent c356246 commit 9b297a1
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Compile C++ on macOS

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: macos-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install dependencies
run: |
brew update
brew install gcc
- name: Compile C++ code
run: |
g++ -o output main.cpp
- name: Run compiled program
run: |
./output

0 comments on commit 9b297a1

Please sign in to comment.