Merge pull request #9 from grandcentrix/zephyr-4.0.0 #37
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- run: sudo apt-get update | |
- run: sudo apt-get install fd-find ninja-build gcc-multilib | |
- run: echo "PATH=$PATH:/usr/lib/cargo/bin" >> $GITHUB_ENV | |
- run: pip3 install -U west | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
path: cobs | |
- uses: grandcentrix/actions-zephyr-sdk@v1 | |
with: | |
url: https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.1/zephyr-sdk-0.16.1_linux-x86_64_minimal.tar.xz | |
toolchains: x86_64-zephyr-elf | |
- uses: grandcentrix/actions-ssh2https@v1 | |
with: | |
token: ${{ secrets.REPO_READ_TOKEN }} | |
- name: Initialize | |
working-directory: cobs | |
run: | | |
west init -l --mf west-ci.yml . | |
west update | |
- name: Install Zephyr Python dependencies | |
run: pip3 install -r zephyr/scripts/requirements.txt | |
- name: Install COBS Python dependencies | |
working-directory: cobs | |
run: pip3 install -r requirements.txt | |
- name: Checkpatch | |
working-directory: cobs | |
run: ./scripts/checkpatch | |
- name: Static analysis | |
run: ./cobs/scripts/tidy | |
- name: Twister Tests | |
working-directory: cobs | |
run: | | |
west twister -vv -T tests --integration | |
- name: Test fuzzing corpus | |
working-directory: cobs | |
run: ./scripts/fuzz |