27 lines
693 B
YAML
27 lines
693 B
YAML
name: C/C++ CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main", "develop" ]
|
|
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 libreadline-dev libsdl2-dev libx11-dev libxext-dev liblua5.4-dev
|
|
- name: make standard
|
|
run: make clean-all && make
|
|
- name: make without any sdl
|
|
run: make clean-all && make WITH_SDL2=no
|
|
- name: make without x11
|
|
run: make clean-all && make WITH_X11=no
|
|
- name: make with neither x11 nor sdl
|
|
run: make clean-all && make WITH_X11=no WITH_SDL2=no
|