27 lines
482 B
YAML
27 lines
482 B
YAML
name: Build C Program
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up build environment
|
|
run: sudo apt-get update && sudo apt-get install -y build-essential
|
|
|
|
- name: Build with make
|
|
run: make
|
|
|
|
- name: Upload build artifact
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: build-artifact
|
|
path: . |