-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from anlsys/feature/github-ci
[ci] move CI to github, remove hardcoded flags
- Loading branch information
Showing
40 changed files
with
335 additions
and
80 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,104 @@ | ||
# Copyright 2019 UChicago Argonne, LLC. | ||
# (c.f. AUTHORS, LICENSE) | ||
# | ||
# This file is part of the AML project. | ||
# For more info, see https://github.com/anlsys/aml | ||
# | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
--- | ||
Language: Cpp | ||
AccessModifierOffset: -2 | ||
AlignAfterOpenBracket: Align | ||
AlignConsecutiveAssignments: false | ||
AlignConsecutiveDeclarations: false | ||
AlignEscapedNewlines: Right | ||
AlignOperands: true | ||
AlignTrailingComments: false | ||
AllowAllParametersOfDeclarationOnNextLine: true | ||
AllowShortBlocksOnASingleLine: false | ||
AllowShortCaseLabelsOnASingleLine: false | ||
AllowShortFunctionsOnASingleLine: None | ||
AllowShortIfStatementsOnASingleLine: false | ||
AllowShortLoopsOnASingleLine: false | ||
AlwaysBreakAfterDefinitionReturnType: None | ||
AlwaysBreakAfterReturnType: None | ||
AlwaysBreakBeforeMultilineStrings: false | ||
BinPackArguments: true | ||
BinPackParameters: false | ||
BreakBeforeBinaryOperators: None | ||
BreakBeforeBraces: Linux | ||
BreakBeforeInheritanceComma: false | ||
BreakInheritanceList: BeforeColon | ||
BreakBeforeTernaryOperators: false | ||
BreakConstructorInitializersBeforeComma: false | ||
BreakConstructorInitializers: BeforeComma | ||
BreakAfterJavaFieldAnnotations: false | ||
BreakStringLiterals: false | ||
ColumnLimit: 80 | ||
CommentPragmas: '^ IWYU pragma:' | ||
CompactNamespaces: false | ||
ConstructorInitializerAllOnOneLineOrOnePerLine: false | ||
ConstructorInitializerIndentWidth: 8 | ||
ContinuationIndentWidth: 8 | ||
Cpp11BracedListStyle: true | ||
DerivePointerAlignment: false | ||
DisableFormat: false | ||
ExperimentalAutoDetectBinPacking: false | ||
FixNamespaceComments: false | ||
IncludeBlocks: Regroup | ||
IncludeCategories: | ||
- Regex: 'config\.h' | ||
Priority: 1 | ||
- Regex: 'test.*' | ||
Priority: 1 | ||
- Regex: 'aml\.h' | ||
Priority: 3 | ||
- Regex: 'aml/.*' | ||
Priority: 4 | ||
- Regex: '^<.*\.h>' | ||
Priority: 2 | ||
- Regex: '.*' | ||
Priority: 5 | ||
IncludeIsMainRegex: 'aml\.h' | ||
IndentCaseLabels: false | ||
IndentWidth: 8 | ||
IndentWrappedFunctionNames: false | ||
JavaScriptQuotes: Leave | ||
JavaScriptWrapImports: true | ||
KeepEmptyLinesAtTheStartOfBlocks: true | ||
MacroBlockBegin: '' | ||
MacroBlockEnd: '' | ||
MaxEmptyLinesToKeep: 1 | ||
NamespaceIndentation: Inner | ||
PenaltyBreakAssignment: 10 | ||
PenaltyBreakBeforeFirstCallParameter: 30 | ||
PenaltyBreakComment: 10 | ||
PenaltyBreakFirstLessLess: 0 | ||
PenaltyBreakString: 10 | ||
PenaltyBreakTemplateDeclaration: 10 | ||
PenaltyExcessCharacter: 100 | ||
PenaltyReturnTypeOnItsOwnLine: 60 | ||
PointerAlignment: Right | ||
ReflowComments: true | ||
SortIncludes: true | ||
SortUsingDeclarations: true | ||
SpaceAfterCStyleCast: false | ||
SpaceAfterTemplateKeyword: true | ||
SpaceBeforeAssignmentOperators: true | ||
SpaceBeforeCpp11BracedList: false | ||
SpaceBeforeCtorInitializerColon: true | ||
SpaceBeforeInheritanceColon: true | ||
SpaceBeforeParens: ControlStatements | ||
SpaceBeforeRangeBasedForLoopColon: true | ||
SpaceInEmptyParentheses: false | ||
SpacesBeforeTrailingComments: 1 | ||
SpacesInAngles: false | ||
SpacesInContainerLiterals: false | ||
SpacesInCStyleCastParentheses: false | ||
SpacesInParentheses: false | ||
SpacesInSquareBrackets: false | ||
Standard: Cpp03 | ||
TabWidth: 8 | ||
UseTab: ForIndentation | ||
... | ||
|
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,109 @@ | ||
name: builds | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
env: | ||
CFLAGS: "-std=c99 -pedantic -Wall -Wextra -Werror -Wno-unused-but-set-parameter -Wno-builtin-declaration-mismatch" | ||
VERBOSE: 1 | ||
jobs: | ||
generic: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
fetch-depth: 0 | ||
- run: sudo apt-get update | ||
- run: sudo apt-get install -y gcc make autoconf automake libtool pkgconf | ||
- name: configure | ||
run: | | ||
./autogen.sh | ||
mkdir build | ||
./configure --prefix=`pwd`/build | ||
- run: make | ||
- run: make check | ||
- run: make install | ||
- uses: actions/upload-artifact@v4 | ||
if: failure() | ||
with: | ||
name: generic | ||
path: | | ||
config.log | ||
tests/*.log | ||
out-of-tree: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
fetch-depth: 0 | ||
- run: sudo apt-get update | ||
- run: sudo apt-get install -y gcc make autoconf automake libtool pkgconf libhwloc-dev | ||
- name: configure | ||
run: | | ||
./autogen.sh | ||
mkdir out | ||
cd out | ||
mkdir build | ||
../configure --prefix=`pwd`/build --without-rocm | ||
- run: make | ||
working-directory: out | ||
- run: make check | ||
working-directory: out | ||
- uses: actions/upload-artifact@v4 | ||
if: failure() | ||
with: | ||
name: out-of-tree | ||
path: | | ||
out/config.log | ||
out/tests/*.log | ||
valgrind: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
fetch-depth: 0 | ||
- run: sudo apt-get update | ||
- run: sudo apt-get install -y gcc make autoconf automake libtool pkgconf valgrind | ||
- name: configure | ||
run: | | ||
./autogen.sh | ||
mkdir build | ||
./configure --prefix=`pwd`/build --enable-valgrind | ||
- run: make | ||
- run: make check-valgrind | ||
env: | ||
VALGRIND_SUPPRESSIONS_FILES: ${{ github.workspace }}/.valgrind.supp | ||
- uses: actions/upload-artifact@v4 | ||
if: failure() | ||
with: | ||
name: valgrind | ||
path: | | ||
config.log | ||
tests/*.log | ||
distcheck: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
fetch-depth: 0 | ||
- run: sudo apt-get update | ||
- run: sudo apt-get install -y gcc make autoconf automake libtool pkgconf | ||
- name: configure | ||
run: | | ||
./autogen.sh | ||
mkdir build | ||
./configure --prefix=`pwd`/build | ||
- run: make distcheck | ||
- uses: actions/upload-artifact@v4 | ||
if: failure() | ||
with: | ||
name: distcheck | ||
path: | | ||
config.log | ||
tests/*.log |
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,27 @@ | ||
name: style-checks | ||
on: [pull_request] | ||
jobs: | ||
clang-format: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: retrieve merge target info | ||
run: git fetch origin $GITHUB_BASE_REF | ||
- run: sudo apt-get update | ||
- run: sudo apt-get install -y clang-format-12 | ||
- name: run git-clang-format | ||
run: | | ||
target=$(git rev-parse origin/$GITHUB_BASE_REF) | ||
git-clang-format-12 --quiet --diff $target > clang-format-diff | ||
lint=$(grep -v --color=never "no modified files to format" clang-format-diff || true) | ||
if [ ! -z "$lint" ]; then echo "format errors, inspect the clang-format-diff artifact for info"; exit 1; else exit 0; fi | ||
shell: bash | ||
- name: output clang format diff | ||
if: always() | ||
run: cat ./clang-format-diff | ||
license-check: | ||
runs-on: ubuntu-latest | ||
container: apache/skywalking-eyes | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: /bin/license-eye -c .licenserc.yml -v debug header check |
This file was deleted.
Oops, something went wrong.
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,20 @@ | ||
header: | ||
license: | ||
spdx-id: BSD-3-Clause | ||
copyright-owner: UChicago Argonne, LLC | ||
content: | | ||
Copyright 2019 UChicago Argonne, LLC. | ||
(c.f. AUTHORS, LICENSE) | ||
This file is part of the EXCIT project. | ||
For more info, see https://github.com/anlsys/excit | ||
SPDX-License-Identifier: BSD-3-Clause | ||
paths: | ||
- '**/*.c' | ||
- '**/*.h' | ||
- '**/*.h.in' | ||
paths-ignore: | ||
- 'src/dev/excit.h' | ||
comment: never |
This file was deleted.
Oops, something went wrong.
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,12 @@ | ||
{ | ||
ignore_unversioned_libs | ||
Memcheck:Leak | ||
... | ||
obj:*/lib*/lib*.so | ||
} | ||
{ | ||
ignore_versioned_libs | ||
Memcheck:Leak | ||
... | ||
obj:*/lib*/lib*.so.* | ||
} |
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
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
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
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
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
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
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
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
Oops, something went wrong.