Skip to content

Commit

Permalink
Compilation is now working (#12)
Browse files Browse the repository at this point in the history
* Removing ANSI to make the code compile

* Adding CI github action
  • Loading branch information
devinatkin authored Dec 11, 2023
1 parent 2299e4b commit 93fbe83
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: C Program Build

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Install GCC and MinGW for Windows compilation
run: |
sudo apt update
sudo apt-get install -y gcc
- name: Run Makefile
run: make

- name: Upload compiled sherlock
uses: actions/upload-artifact@v3
with:
name: sherlock
path: sherlock
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sherlock
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CC = gcc
CFLAGS = -Wall -ansi -pedantic -O2 -g -D_DEFAULT_SOURCE
CFLAGS = -Wall -pedantic -O2 -g -D_DEFAULT_SOURCE
SOURCE = *.c *.h *akefile*
PROGRAM = sherlock

Expand Down

0 comments on commit 93fbe83

Please sign in to comment.