From f6998ff1cf86d65eb9707477bfb63d7deadbac8e Mon Sep 17 00:00:00 2001 From: Steve Schnepp Date: Thu, 31 Aug 2023 22:29:40 +0200 Subject: [PATCH] adding a C action for basic compilation testing --- .github/workflows/c-cpp.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/c-cpp.yml diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml new file mode 100644 index 0000000..1e78033 --- /dev/null +++ b/.github/workflows/c-cpp.yml @@ -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