Extract target_source macro, add chimera-open dependencies #7
Workflow file for this run
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
# Copyright 2024 ETH Zurich and University of Bologna. | |
# Licensed under the Apache License, Version 2.0, see LICENSE for details. | |
# SPDX-License-Identifier: Apache-2.0 | |
# Author: Sergio Mazzola <[email protected]> | |
# Author: Moritz Scherer <[email protected]> | |
name: lint | |
on: [ push ] | |
jobs: | |
lint-license: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v4 | |
- | |
name: Check license | |
uses: pulp-platform/pulp-actions/lint-license@v2 | |
with: | |
license: | | |
Copyright (\d{4}(-\d{4})?\s)?.* | |
(Solderpad Hardware License, Version 0.51|Licensed under the Apache License, Version 2.0), see LICENSE for details. | |
SPDX-License-Identifier: (SHL-0.51|Apache-2.0) | |
exclude_paths: | | |
scripts/run_clang_format.py | |
lint-cxx: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v4 | |
- | |
name: Run Clang-format | |
uses: DoozyX/[email protected] | |
with: | |
extensions: 'c,h,cpp' | |
clangFormatVersion: 12 | |
style: > | |
{ | |
IndentWidth: 4, | |
ColumnLimit: 100, | |
AlignEscapedNewlines: DontAlign, | |
SortIncludes: false, | |
AllowShortFunctionsOnASingleLine: None, | |
AllowShortIfStatementsOnASingleLine: true, | |
AllowShortLoopsOnASingleLine: true | |
} |