Skip to content

Commit

Permalink
ci: build: use action-zephyr-setup and add some improvements
Browse files Browse the repository at this point in the history
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
  • Loading branch information
gmarull committed Mar 5, 2024
1 parent c47d162 commit 45cf766
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 61 deletions.
33 changes: 11 additions & 22 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,34 +7,23 @@ on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
container: teslabs/spinner:latest
env:
CMAKE_PREFIX_PATH: /opt/toolchains
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: spinner

- name: Cache Zephyr
uses: actions/cache@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
path: |
modules
zephyr
key: ${{ hashFiles('spinner/west.yml') }}
python-version: 3.11

- name: Initialize
working-directory: spinner
run: |
pip3 install -U west
west init -l .
west update
pip3 install -r ../zephyr/scripts/requirements-base.txt
pip3 install -r ../zephyr/scripts/requirements-build-test.txt
pip3 install -r ../zephyr/scripts/requirements-run-test.txt
pip3 install -r docs/requirements.txt
- name: Setup Zephyr project
uses: zephyrproject-rtos/action-zephyr-setup@v1
with:
app-path: spinner
toolchains: arm-zephyr-eabi

- name: Lint code
run: |
Expand All @@ -51,4 +40,4 @@ jobs:
- name: Test
working-directory: spinner
run: |
west twister -T tests --integration -v
west twister -T tests -v --inline-logs --integration
39 changes: 0 additions & 39 deletions Dockerfile

This file was deleted.

0 comments on commit 45cf766

Please sign in to comment.