mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2026-02-20 00:31:35 +01:00
👷 Add Simulator CI test (#27288)
This commit is contained in:
8
.github/workflows/ci-build-tests.yml
vendored
8
.github/workflows/ci-build-tests.yml
vendored
@@ -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 }}
|
||||
|
||||
16
buildroot/tests/simulator_linux_release
Executable file
16
buildroot/tests/simulator_linux_release
Executable 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
|
||||
Reference in New Issue
Block a user