-
Notifications
You must be signed in to change notification settings - Fork 186
CI: Add msys2 UCRT64 and CLANGARM64 targets #132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| #!/bin/bash | ||
| set -euo pipefail | ||
|
|
||
| # Set default options | ||
| BUILD_TYPE="Release" | ||
| BUILD_DIR="build" | ||
| INSTALL_DIR="$(pwd)/install" | ||
| REGRESSION_TESTS="OFF" | ||
| BUILD_SHARED_LIBS="ON" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It would be nice to test both, shared and static library flows. |
||
|
|
||
| SYSTEMC_CI_DEFAULT_TARGET="systemc" | ||
| SYSTEMC_CI_REGRESSION_TARGET="check-tests" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The current docker entrypoint.sh does: Is this doing the same? |
||
| SYSTEMC_CI_TARGET=${SYSTEMC_CI_DEFAULT_TARGET} | ||
|
|
||
| for arg in "$@"; do | ||
| if [[ "$arg" == "--run-regression" ]]; then | ||
| REGRESSION_TESTS="ON" | ||
| SYSTEMC_CI_TARGET=${SYSTEMC_CI_REGRESSION_TARGET} | ||
| fi | ||
| done | ||
|
|
||
| # Generate the project | ||
| cmake -B ${BUILD_DIR} \ | ||
| -D ENABLE_REGRESSION=${REGRESSION_TESTS} \ | ||
| -D BUILD_SHARED_LIBS=${BUILD_SHARED_LIBS} \ | ||
| -D CMAKE_BUILD_TYPE=${BUILD_TYPE} \ | ||
| -D CMAKE_INSTALL_PREFIX="${INSTALL_DIR}" | ||
|
|
||
| # Build the project | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we can remove all comments (that point out obvious things) from this script. |
||
| cmake --build ${BUILD_DIR} --config ${BUILD_TYPE} --parallel --target ${SYSTEMC_CI_TARGET} | ||
|
|
||
| # Skip installation for regressions runs | ||
| if [ "${REGRESSION_TESTS}" == "OFF" ]; then | ||
| cmake --install ${BUILD_DIR} | ||
| fi | ||
|
|
||
| exit 0 | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this script should be at the top level.
Maybe we should consider moving the
docker/folder into aci/folder and put everything there or introduce autils/folder where this kind of script can go.