👷 Add Simulator CI test (#27288)

This commit is contained in:
Keith Bennett 2024-07-19 23:47:23 -07:00 committed by GitHub
parent 7441094a41
commit 69004322f6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 24 additions and 0 deletions

View file

@ -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 }}

View file

@ -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