Skip to content

Rename c-compile.ymal to c-compile.yml #1

Rename c-compile.ymal to c-compile.yml

Rename c-compile.ymal to c-compile.yml #1

Workflow file for this run

name: Compile and Test C Program
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up GCC
run: sudo apt-get install -y gcc
- name: Compile C program
run: gcc -o my_program main.c
- name: Run tests
run: |
if ./my_program; then
echo "Test Passed"
else
echo "Test Failed"
exit 1
fi