Skip to content

Commit

Permalink
Create c-cpp.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wilyJ80 authored Nov 29, 2024
1 parent b4bb541 commit 5bd1a27
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: C CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
# Checkout the repository
- uses: actions/checkout@v4

# Set up a basic build environment (you can install any dependencies here)
- name: Set up GCC
run: sudo apt-get update && sudo apt-get install -y gcc make

# Run the build.sh script with 'test' argument to compile and run tests
- name: Run build script (test)
run: |
chmod +x build.sh
./build.sh test
# Ensure the tests fail if assertions fail
continue-on-error: false

0 comments on commit 5bd1a27

Please sign in to comment.