@@ -9,24 +9,29 @@ inputs:
99runs :
1010 using : composite
1111 steps :
12- - name : Get Linux build dependencies
12+ - name : Show CPU model
1313 if : runner.os == 'Linux'
14- run : |
15- echo "--- cpu model ---"
16- grep "model name" /proc/cpuinfo | head -1
17- sudo apt-get update
18- sudo apt-get install -y libusb-1.0-0-dev libudev-dev pkg-config mtools
14+ run : grep "model name" /proc/cpuinfo | head -1
1915 shell : bash
20- - name : Get SDL2 for native_sim
16+ - name : Get Linux build dependencies
17+ if : runner.os == 'Linux'
18+ uses : ./.github/actions/deps/apt_packages
19+ with :
20+ # The last four are the packages action-zephyr-setup@v1 installs, so its apt-get has nothing to download.
21+ packages : libusb-1.0-0-dev libudev-dev pkg-config mtools ccache gperf libc6-dev-i386 g++-multilib
22+ - name : Prepare for 32-bit SDL2
2123 if : runner.os == 'Linux' && inputs.sdl == 'true'
2224 run : |
2325 sudo dpkg --add-architecture i386
24- sudo apt-get update
2526 # We have to hold python3 so the following install works. See https://github.com/actions/runner-images/issues/13803
2627 sudo apt-mark hold python3
27- sudo apt-get install -y libsdl2-dev:i386 libsdl2-image-dev:i386
2828 echo "PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}" >> $GITHUB_ENV
2929 shell : bash
30+ - name : Get SDL2 for native_sim
31+ if : runner.os == 'Linux' && inputs.sdl == 'true'
32+ uses : ./.github/actions/deps/apt_packages
33+ with :
34+ packages : libsdl2-dev:i386 libsdl2-image-dev:i386
3035 - name : Setup Zephyr project
3136 uses : zephyrproject-rtos/action-zephyr-setup@v1
3237 with :
0 commit comments