Skip to content

Commit

Permalink
add compile to action
Browse files Browse the repository at this point in the history
  • Loading branch information
himaren committed May 8, 2024
1 parent 34408e2 commit 78c468c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/hella_world.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,14 @@ jobs:
compile_and_run:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install GCC
run: sudo apt-get update && sudo apt-get install -y gcc

- name: Compile C program
run: gcc address_book_tests.c -o address_book_tests

- name: Run compiled program
run: ./build/address_book_tests
run: .address_book_tests

0 comments on commit 78c468c

Please sign in to comment.