Skip to content

Commit f9827f5

Browse files
authored
Create run-tests.yml
1 parent 6175877 commit f9827f5

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/run-tests.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Compile and Run C Serial Parser
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build-and-run:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository code
15+
uses: actions/checkout@v4
16+
17+
- name: Compile C Project modules
18+
run: |
19+
gcc -Iinclude src/main.c src/ring_buffer.c src/parser.c -o serial_parser_demo
20+
21+
- name: Execute Parser Simulation
22+
run: |
23+
./serial_parser_demo

0 commit comments

Comments
 (0)