Skip to content

Commit

Permalink
.github: re-enable rimage workflows
Browse files Browse the repository at this point in the history
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
marc-hb committed Oct 16, 2023
1 parent 0e41691 commit 1cf1864
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 55 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/rimage.yml
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/
25 changes: 0 additions & 25 deletions tools/rimage/.github/workflows/build.yml

This file was deleted.

30 changes: 0 additions & 30 deletions tools/rimage/.github/workflows/cppcheck.yml

This file was deleted.

0 comments on commit 1cf1864

Please sign in to comment.