From 69004322f66641cc201811edba2a7f7d1eadc07f Mon Sep 17 00:00:00 2001 From: Keith Bennett <13375512+thisiskeithb@users.noreply.github.com> Date: Fri, 19 Jul 2024 23:47:23 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Add=20Simulator=20CI=20test=20(#?= =?UTF-8?q?27288)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci-build-tests.yml | 8 ++++++++ buildroot/tests/simulator_linux_release | 16 ++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100755 buildroot/tests/simulator_linux_release diff --git a/.github/workflows/ci-build-tests.yml b/.github/workflows/ci-build-tests.yml index edd69c1c15..1fa87a6ac5 100644 --- a/.github/workflows/ci-build-tests.yml +++ b/.github/workflows/ci-build-tests.yml @@ -43,6 +43,7 @@ jobs: # Native - linux_native + - simulator_linux_release # AVR - mega2560 @@ -182,6 +183,13 @@ jobs: pio upgrade --dev pio pkg update --global + - name: Install Simulator dependencies + run: | + sudo apt-get install build-essential + sudo apt-get install libsdl2-dev + sudo apt-get install libsdl2-net-dev + sudo apt-get install libglm-dev + - name: Run ${{ matrix.test-platform }} Tests run: | make tests-single-ci TEST_TARGET=${{ matrix.test-platform }} diff --git a/buildroot/tests/simulator_linux_release b/buildroot/tests/simulator_linux_release new file mode 100755 index 0000000000..826bdecc5e --- /dev/null +++ b/buildroot/tests/simulator_linux_release @@ -0,0 +1,16 @@ +#!/usr/bin/env bash +# +# Build tests for Simulator on Linux +# + +# exit on first failure +set -e + +# +# Build with the default configurations +# +use_example_configs Simulator +exec_test $1 $2 "Simulator" "$3" + +# cleanup +restore_configs