mirror of
https://github.com/MarlinFirmware/Configurations.git
synced 2025-07-06 06:27:35 -06:00
🔨 Only install Sim deps as needed (#1082)
This commit is contained in:
parent
8c280ea874
commit
840cb6d9c8
1 changed files with 6 additions and 7 deletions
13
.github/workflows/build-pr.yml
vendored
13
.github/workflows/build-pr.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue