2023-08-31 22:29:40 +02:00
|
|
|
name: C/C++ CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2024-09-05 21:09:40 +02:00
|
|
|
branches: [ "main", "develop" ]
|
2023-08-31 22:29:40 +02:00
|
|
|
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
|
2024-09-08 17:03:14 +02:00
|
|
|
run: sudo apt install pkgconf libreadline-dev libsdl2-gfx-dev libsdl2-dev libx11-dev libxext-dev liblua5.4-dev
|
2023-10-31 14:30:42 +01:00
|
|
|
- name: make standard
|
2023-09-15 09:53:03 +02:00
|
|
|
run: make clean-all && make
|
2024-09-05 21:09:40 +02:00
|
|
|
- name: make without any sdl
|
2024-09-08 17:03:14 +02:00
|
|
|
run: make clean-all && make WITH_SDL2=no
|
2023-10-31 14:30:42 +01:00
|
|
|
- name: make without x11
|
|
|
|
run: make clean-all && make WITH_X11=no
|
|
|
|
- name: make with neither x11 nor sdl
|
2024-09-08 17:03:14 +02:00
|
|
|
run: make clean-all && make WITH_X11=no WITH_SDL2=no
|