From 28c6f3403e9217fce30f787692b9a5ec0ee03254 Mon Sep 17 00:00:00 2001 From: Otto Date: Sat, 17 Feb 2024 15:52:47 +1000 Subject: [PATCH] Github Workflows - added a github workflow to check syntax via examples. It would be nice to see more working examples that hits all of the include files, then this could move to the next step of actually compiling and/or running tests. *Note: TEST_Animate2D.cpp is broken. --- .github/workflows/syntax.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/syntax.yml diff --git a/.github/workflows/syntax.yml b/.github/workflows/syntax.yml new file mode 100644 index 00000000..9e0585ac --- /dev/null +++ b/.github/workflows/syntax.yml @@ -0,0 +1,25 @@ +name: Syntax Check + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build-and-test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Install Linux Dependencies and Tools + run: sudo apt-get update && sudo apt-get install xorg-dev libxrandr-dev libxcursor-dev libudev-dev libopenal-dev libflac-dev libvorbis-dev libgl1-mesa-dev libegl1-mesa-dev libdrm-dev libgbm-dev xvfb fluxbox ccache gcovr + + - name: Check TEST_Animate2D.cpp - Skipped until fixed + run: echo "[log] TEST_Animate2D.cpp needs fixing" + + - name: Check TEST_Camera2D.cpp + run: g++ -fsyntax-only examples/TEST_Camera2D.cpp -I. + + - name: Check TEST_QuickGUI.cpp + run: g++ -fsyntax-only examples/TEST_QuickGUI.cpp -I. \ No newline at end of file