From e1a2047d153061367495f4d144a1e8c6f6f8ce78 Mon Sep 17 00:00:00 2001 From: thisiskeithb <13375512+thisiskeithb@users.noreply.github.com> Date: Sun, 14 Jul 2024 05:58:31 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Install=20Simulator=20dependenci?= =?UTF-8?q?es=20when=20required?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-pr.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-pr.yml b/.github/workflows/build-pr.yml index ff9af80694f..dbff38d395e 100644 --- a/.github/workflows/build-pr.yml +++ b/.github/workflows/build-pr.yml @@ -69,13 +69,6 @@ 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 - # Fetch the code from the other repo and compile it: - name: Clone Marlin run: | @@ -108,6 +101,12 @@ jobs: if [ "$MB" == "SIMULATED" ] then ENVS=$"simulator_linux_release" + + # Install Simulator dependencies + 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 else ENVS=( $( grep -EA1 "MB\(.*\b$MB\b.*\)" Marlin/src/pins/pins.h | grep -E "#include.+//.+env:[^ ]+" | grep -oE "env:[^ ]+" | sed -E "s/env://" ) ) fi