Skip to content

Commit

Permalink
🔨 Only install Sim deps as needed (#1082)
Browse files Browse the repository at this point in the history
  • Loading branch information
thisiskeithb authored Jul 29, 2024
1 parent 8c280ea commit 840cb6d
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 840cb6d

Please sign in to comment.