Create compile.yml #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Compile C Code | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up build environment | |
run: | | |
sudo apt-get update | |
sudo apt-get -y install build-essential | |
- name: Compile C code | |
run: gcc -o gitready_pre src/gitready.c | |
- name: Run compiled code | |
run: ./gitready_pre |