Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/actions/deps/ports/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ runs:
- name: Set up Zephyr
if: inputs.port == 'zephyr-cp'
uses: ./.github/actions/deps/ports/zephyr-cp
with:
sdl: ${{ startsWith(inputs.board, 'native_') }}
13 changes: 12 additions & 1 deletion .github/actions/deps/ports/zephyr-cp/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
name: Fetch Zephyr port deps

inputs:
sdl:
description: 'Install the 32-bit SDL2 packages native_sim needs'
required: false
default: 'false'

runs:
using: composite
steps:
Expand All @@ -8,9 +14,14 @@ runs:
run: |
echo "--- cpu model ---"
grep "model name" /proc/cpuinfo | head -1
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install -y libusb-1.0-0-dev libudev-dev pkg-config mtools
shell: bash
- name: Get SDL2 for native_sim
if: runner.os == 'Linux' && inputs.sdl == 'true'
run: |
sudo dpkg --add-architecture i386
sudo apt-get update
# We have to hold python3 so the following install works. See https://github.com/actions/runner-images/issues/13803
sudo apt-mark hold python3
sudo apt-get install -y libsdl2-dev:i386 libsdl2-image-dev:i386
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/run-zephyr-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:
python-version: 3.13
- name: Set up Zephyr
uses: ./.github/actions/deps/ports/zephyr-cp
with:
sdl: true
- name: Set up submodules
id: set-up-submodules
uses: ./.github/actions/deps/submodules
Expand Down
Loading