dont use the old one, btw did i say already that github web is dumb? #10
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 src/gitready_pre src/gitready.c | |
- name: Upload artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: gitready_pre | |
path: src/gitready_pre | |
- name: Run compiled code | |
run: ./src/gitready_pre |