-
Notifications
You must be signed in to change notification settings - Fork 321
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate rimage build and cppcheck workflows from sof/tools/rimage/.github/workflows/ (where they're ignored) to sof/.github/workflows/ Signed-off-by: Marc Herbert <marc.herbert@intel.com>
- Loading branch information
Showing
3 changed files
with
59 additions
and
55 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# Tools that can save round-trips to github and a lot of time: | ||
# | ||
# yamllint -f parsable this.yml | ||
# pip3 install ruamel.yaml.cmd | ||
# yaml merge-expand this.yml exp.yml && diff -w -u this.yml exp.yml | ||
# | ||
# github.com also has a powerful web editor that can be used without | ||
# committing. | ||
|
||
name: rimage | ||
|
||
# yamllint disable-line rule:truthy | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
paths: | ||
- tools/rimage/** | ||
push: | ||
paths: | ||
- tools/rimage/** | ||
|
||
jobs: | ||
|
||
# Basic build test | ||
build: | ||
runs-on: ubuntu-22.04 | ||
env: | ||
CMAKE_C_FLAGS: -Werror -Wall -Wmissing-prototypes -Wimplicit-fallthrough=3 | ||
-Wpointer-arith | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: {recursive: true, fetch-depth: 0, filter: 'tree:0'} | ||
|
||
- name: install tools | ||
run: sudo apt update && sudo apt install -y ninja-build | ||
|
||
- name: build | ||
run: cmake -B build-rimage/ -S tools/rimage/ | ||
- run: cmake --build build-rimage/ | ||
|
||
|
||
# cppcheck | ||
cppcheck: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: {recursive: true, fetch-depth: 0, filter: 'tree:0'} | ||
|
||
- name: apt install cppcheck | ||
run: sudo apt update && sudo apt-get -y install cppcheck | ||
|
||
# TODO enable more types of checks as they are fixed | ||
- name: run cppcheck | ||
run: cppcheck --platform=unix32 --force --max-configs=1024 | ||
--inconclusive --quiet --inline-suppr | ||
--error-exitcode=1 tools/rimage/ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.