mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-07-06 22:47:27 -06:00
👷 Add Simulator CI test (#27288)
This commit is contained in:
parent
7441094a41
commit
69004322f6
2 changed files with 24 additions and 0 deletions
8
.github/workflows/ci-build-tests.yml
vendored
8
.github/workflows/ci-build-tests.yml
vendored
|
@ -43,6 +43,7 @@ jobs:
|
||||||
|
|
||||||
# Native
|
# Native
|
||||||
- linux_native
|
- linux_native
|
||||||
|
- simulator_linux_release
|
||||||
|
|
||||||
# AVR
|
# AVR
|
||||||
- mega2560
|
- mega2560
|
||||||
|
@ -182,6 +183,13 @@ jobs:
|
||||||
pio upgrade --dev
|
pio upgrade --dev
|
||||||
pio pkg update --global
|
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
|
- name: Run ${{ matrix.test-platform }} Tests
|
||||||
run: |
|
run: |
|
||||||
make tests-single-ci TEST_TARGET=${{ matrix.test-platform }}
|
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
|
Loading…
Add table
Add a link
Reference in a new issue