-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into maint_replace_pthreads
- Loading branch information
Showing
1,007 changed files
with
65,862 additions
and
61,378 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,96 +1,13 @@ | ||
--- | ||
BasedOnStyle: LLVM | ||
IndentWidth: 4 | ||
--- | ||
Language: Cpp | ||
# BasedOnStyle: LLVM | ||
AccessModifierOffset: -2 | ||
AlignAfterOpenBracket: Align | ||
AlignConsecutiveAssignments: false | ||
AlignConsecutiveDeclarations: false | ||
AlignEscapedNewlinesLeft: false | ||
AlignOperands: true | ||
AlignTrailingComments: true | ||
AllowAllParametersOfDeclarationOnNextLine: true | ||
AllowShortBlocksOnASingleLine: false | ||
AllowShortCaseLabelsOnASingleLine: false | ||
AllowShortFunctionsOnASingleLine: All | ||
AllowShortIfStatementsOnASingleLine: false | ||
AllowShortLoopsOnASingleLine: false | ||
AlwaysBreakAfterDefinitionReturnType: None | ||
AlwaysBreakAfterReturnType: None | ||
AlwaysBreakBeforeMultilineStrings: false | ||
AlwaysBreakTemplateDeclarations: false | ||
BinPackArguments: true | ||
BinPackParameters: true | ||
BraceWrapping: | ||
AfterClass: false | ||
AfterControlStatement: false | ||
AfterEnum: false | ||
AfterFunction: false | ||
AfterNamespace: false | ||
AfterObjCDeclaration: false | ||
AfterStruct: false | ||
AfterUnion: false | ||
BeforeCatch: false | ||
BeforeElse: false | ||
IndentBraces: false | ||
BreakBeforeBinaryOperators: None | ||
BreakBeforeBraces: Attach | ||
BreakBeforeTernaryOperators: true | ||
BreakConstructorInitializersBeforeComma: false | ||
BreakAfterJavaFieldAnnotations: false | ||
BreakStringLiterals: true | ||
ColumnLimit: 80 | ||
CommentPragmas: '^ IWYU pragma:' | ||
ConstructorInitializerAllOnOneLineOrOnePerLine: false | ||
ConstructorInitializerIndentWidth: 4 | ||
ContinuationIndentWidth: 4 | ||
Cpp11BracedListStyle: true | ||
DerivePointerAlignment: false | ||
DisableFormat: false | ||
ExperimentalAutoDetectBinPacking: false | ||
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ] | ||
IncludeCategories: | ||
- Regex: '^"(llvm|llvm-c|clang|clang-c)/' | ||
Priority: 2 | ||
- Regex: '^(<|"(gtest|isl|json)/)' | ||
Priority: 3 | ||
- Regex: '.*' | ||
Priority: 1 | ||
IncludeIsMainRegex: '$' | ||
IndentCaseLabels: false | ||
IndentWidth: 4 | ||
IndentWrappedFunctionNames: false | ||
JavaScriptQuotes: Leave | ||
JavaScriptWrapImports: true | ||
KeepEmptyLinesAtTheStartOfBlocks: true | ||
MacroBlockBegin: '' | ||
MacroBlockEnd: '' | ||
MaxEmptyLinesToKeep: 1 | ||
NamespaceIndentation: None | ||
ObjCBlockIndentWidth: 2 | ||
ObjCSpaceAfterProperty: false | ||
ObjCSpaceBeforeProtocolList: true | ||
PenaltyBreakBeforeFirstCallParameter: 19 | ||
PenaltyBreakComment: 300 | ||
PenaltyBreakFirstLessLess: 120 | ||
PenaltyBreakString: 1000 | ||
PenaltyExcessCharacter: 1000000 | ||
PenaltyReturnTypeOnItsOwnLine: 60 | ||
PointerAlignment: Right | ||
ReflowComments: true | ||
SortIncludes: true | ||
SpaceAfterCStyleCast: false | ||
SpaceAfterTemplateKeyword: true | ||
SpaceBeforeAssignmentOperators: true | ||
SpaceBeforeParens: ControlStatements | ||
SpaceInEmptyParentheses: false | ||
SpacesBeforeTrailingComments: 1 | ||
SpacesInAngles: false | ||
SpacesInContainerLiterals: true | ||
SpacesInCStyleCastParentheses: false | ||
SpacesInParentheses: false | ||
SpacesInSquareBrackets: false | ||
Standard: Cpp11 | ||
TabWidth: 8 | ||
UseTab: Never | ||
... | ||
|
||
AlignAfterOpenBracket: BlockIndent | ||
BreakBeforeBinaryOperators: All | ||
BreakConstructorInitializers: BeforeComma | ||
ColumnLimit: 80 | ||
PointerAlignment: Left | ||
QualifierAlignment: Custom | ||
QualifierOrder: ['inline', 'static', 'type', 'const'] | ||
ReferenceAlignment: Left |
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 |
---|---|---|
|
@@ -16,4 +16,3 @@ exclude_lines = | |
raise | ||
except: | ||
import | ||
|
Validating CODEOWNERS rules …
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,4 @@ | ||
# see https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners | ||
|
||
# default owners | ||
* @AMICI-dev/amici-maintainers |
16 changes: 16 additions & 0 deletions
16
deps/AMICI/.github/actions/install-apt-dependencies/action.yml
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,16 @@ | ||
name: Install apt dependencies | ||
description: Install apt dependencies for the AMICI Python package | ||
runs: | ||
using: "composite" | ||
steps: | ||
- run: | | ||
sudo apt-get update \ | ||
&& sudo apt-get install -y \ | ||
g++ \ | ||
libatlas-base-dev \ | ||
libboost-chrono-dev \ | ||
libboost-math-dev \ | ||
libboost-serialization-dev \ | ||
libhdf5-serial-dev \ | ||
swig | ||
shell: bash |
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,44 @@ | ||
name: Set up AMICI C++ | ||
description: | | ||
Build the AMICI C++ interface and set things for for coverage analysis. | ||
(Currently ubuntu-only). | ||
runs: | ||
using: "composite" | ||
steps: | ||
# BioNetGen Path | ||
- run: echo "BNGPATH=${GITHUB_WORKSPACE}/ThirdParty/BioNetGen-2.7.0" >> $GITHUB_ENV | ||
shell: bash | ||
|
||
# use all available cores | ||
- run: echo "AMICI_PARALLEL_COMPILE=" >> $GITHUB_ENV | ||
shell: bash | ||
|
||
# enable coverage | ||
- run: echo "ENABLE_GCOV_COVERAGE=TRUE" >> $GITHUB_ENV | ||
shell: bash | ||
|
||
- name: Set up Sonar tools | ||
uses: ./.github/actions/setup-sonar-tools | ||
|
||
- name: Install apt dependencies | ||
uses: ./.github/actions/install-apt-dependencies | ||
|
||
- name: Install additional apt dependencies | ||
run: | | ||
sudo apt-get update \ | ||
&& sudo apt-get install -y \ | ||
cmake \ | ||
python3-venv \ | ||
lcov | ||
shell: bash | ||
|
||
- name: Build AMICI dependencies | ||
run: scripts/buildDependencies.sh | ||
shell: bash | ||
|
||
- name: Build AMICI | ||
run: scripts/buildAmici.sh | ||
shell: bash | ||
env: | ||
CI_SONARCLOUD: "TRUE" |
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 @@ | ||
name: Set up doxygen | ||
description: | | ||
Download, build, and install doxygen. | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install apt dependencies for doxygen | ||
run: | | ||
sudo apt-get update \ | ||
&& sudo apt-get install -y \ | ||
bison \ | ||
ragel \ | ||
graphviz \ | ||
texlive-latex-extra | ||
shell: bash | ||
|
||
- name: Download and build doxygen | ||
run: sudo scripts/downloadAndBuildDoxygen.sh | ||
shell: bash |
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,26 @@ | ||
name: Set up Sonar tools | ||
description: Download and install sonar-scanner and build-wrapper | ||
runs: | ||
using: "composite" | ||
steps: | ||
- run: echo "SONAR_SCANNER_VERSION=5.0.1.3006" >> $GITHUB_ENV | ||
shell: bash | ||
- run: echo "SONAR_SCANNER_HOME=${HOME}/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux" >> $GITHUB_ENV | ||
shell: bash | ||
- run: echo "SONAR_SCANNER_OPTS=-server" >> $GITHUB_ENV | ||
shell: bash | ||
- run: echo "${SONAR_SCANNER_HOME}/bin" >> $GITHUB_PATH | ||
shell: bash | ||
- run: echo "${HOME}/.sonar/build-wrapper-linux-x86" >> $GITHUB_PATH | ||
shell: bash | ||
|
||
- name: Install sonarcloud tools | ||
run: | | ||
sudo apt-get install nodejs curl unzip \ | ||
&& curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip \ | ||
https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux.zip \ | ||
&& unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/ \ | ||
&& curl --create-dirs -sSLo $HOME/.sonar/build-wrapper-linux-x86.zip \ | ||
https://sonarcloud.io/static/cpp/build-wrapper-linux-x86.zip \ | ||
&& unzip -o $HOME/.sonar/build-wrapper-linux-x86.zip -d $HOME/.sonar/ \ | ||
shell: bash |
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 @@ | ||
name: Set up SWIG | ||
description: | | ||
Download and build SWIG and set the SWIG environment variable to the path of | ||
the SWIG executable. | ||
inputs: | ||
swig_version: | ||
description: 'Swig version to build' | ||
required: false | ||
default: '4.1.1' | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Download and build SWIG | ||
run: scripts/downloadAndBuildSwig.sh | ||
shell: bash | ||
|
||
- run: echo "SWIG=${AMICI_DIR}/ThirdParty/swig-${{ inputs.swig_version }}/install/bin/swig" >> $GITHUB_ENV | ||
shell: bash |
Oops, something went wrong.