From 09bdd3023a1ab39c3471d91b8d7ebe8be1513970 Mon Sep 17 00:00:00 2001 From: Keith Bennett <13375512+thisiskeithb@users.noreply.github.com> Date: Mon, 29 Jul 2024 11:10:56 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Only=20install=20Sim=20deps=20as?= =?UTF-8?q?=20needed=20(#1082)?= 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