adding a C action for basic compilation testing
This commit is contained in:
parent
6b671b9b0f
commit
f6998ff1cf
1 changed files with 23 additions and 0 deletions
23
.github/workflows/c-cpp.yml
vendored
Normal file
23
.github/workflows/c-cpp.yml
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
name: C/C++ CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: update deps
|
||||
run: sudo apt-get -y update
|
||||
- name: install deps
|
||||
run: sudo apt install pkgconf libx11-dev libxext-dev libreadline-dev libsdl1.2-compat-dev libsdl-gfx1.2-dev
|
||||
- name: make x11
|
||||
run: make clean && make GUI=x11
|
||||
- name: make sdl1
|
||||
run: make clean && make GUI=sdl1
|
Loading…
Reference in a new issue