Skip to content

Commit 1e96795

Browse files
author
Bruce Ashfield
committed
infra: Install device-tree-compiler in CI workflows
The tests require dtc (Device Tree Compiler) to compile device tree files. Without it, lopper_sanity.py fails when trying to invoke dtc: AttributeError: 'NoneType' object has no attribute 'split' at: dtcargs = (os.environ.get('LOPPER_DTC') or shutil.which("dtc")).split() This commit adds installation of the device-tree-compiler package from apt before running tests in both CI and release workflows. Signed-off-by: Bruce Ashfield <bruce.ashfield@amd.com>
1 parent 63341d5 commit 1e96795

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@ jobs:
2424
python-version: ${{ matrix.python-version }}
2525
cache: 'pip'
2626

27-
- name: Install dependencies
27+
- name: Install system dependencies
28+
run: |
29+
sudo apt-get update
30+
sudo apt-get install -y device-tree-compiler
31+
32+
- name: Install Python dependencies
2833
run: |
2934
python -m pip install --upgrade pip
3035
pip install -r requirements.txt

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@ jobs:
2323
python-version: ${{ matrix.python-version }}
2424
cache: 'pip'
2525

26-
- name: Install dependencies
26+
- name: Install system dependencies
27+
run: |
28+
sudo apt-get update
29+
sudo apt-get install -y device-tree-compiler
30+
31+
- name: Install Python dependencies
2732
run: |
2833
python -m pip install --upgrade pip
2934
pip install -r requirements.txt

0 commit comments

Comments
 (0)