Skip to content

Commit ffed0e2

Browse files
committed
CI: Add renode to CI
Copy the renode installation from the Zephyr CI docker image. This will run these tests in the module before being detected in main. Signed-off-by: David Brown <[email protected]>
1 parent 37c77e2 commit ffed0e2

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ jobs:
2222
matrix:
2323
os: [ubuntu-22.04]
2424
runs-on: ${{ matrix.os }}
25+
env:
26+
WGET_ARGS: "-q"
27+
RENODE_VERSION: "1.15.3"
2528
steps:
2629
- name: Checkout
2730
uses: actions/checkout@v4
@@ -50,6 +53,19 @@ jobs:
5053
rustup target add thumbv7m-none-eabi
5154
rustup target add thumbv8m.main-none-eabi
5255
56+
# Note that Renode is only provided for x86_64 targets. This matches the github runners.
57+
- name: Install Renode
58+
shell: bash
59+
run: |
60+
set -e
61+
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
62+
echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
63+
sudo apt-get -y update
64+
wget ${WGET_ARGS} https://github.com/renode/renode/releases/download/v${RENODE_VERSION}/renode_${RENODE_VERSION}_amd64.deb
65+
sudo apt-get install -y ./renode_${RENODE_VERSION}_amd64.deb
66+
rm renode_${RENODE_VERSION}_amd64.deb
67+
pip3 install -r /opt/renode/tests/requirements.txt --no-cache-dir
68+
5369
- name: Build firmware
5470
working-directory: apptest
5571
shell: bash

0 commit comments

Comments
 (0)