Skip to content
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

Feature/test docker build #31

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

ClausKlein
Copy link
Contributor

@ClausKlein ClausKlein commented Aug 9, 2023

Update docker related docs and config

Update .gitlab-ci.yml file using cmake workflow presets and gcovr.

my_lib/CMakeLists.txt Outdated Show resolved Hide resolved
CMakeLists.txt Outdated
Comment on lines 90 to 95
${ENABLE_SANITIZER_THREAD}
${ENABLE_SANITIZER_MEMORY}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These sanitizers cannot be enabled with each other

Copy link
Contributor Author

@ClausKlein ClausKlein Aug 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought this is handled by check_sanitizers_support()

see too ENABLE_SANITIZER_LEAK on Darwin

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check_sanitizers_support only checks if the compiler supports that variable. Maybe we should handle that as well.

.gitlab-ci.yml Outdated Show resolved Hide resolved
.gitlab-ci.yml Outdated
Comment on lines 16 to 18
# XXX WHY? set time-zone
# TZ=Canada/Pacific
# ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I remember, this is required for proper downloading of the tools

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.devcontainer/Dockerfile Outdated Show resolved Hide resolved
Comment on lines +49 to +53
- cmake --workflow --preset ${CI_compiler}-debug
- gcovr .
- cmake --workflow --preset ${CI_compiler}-release
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

usage example of cmake --workflow --preset

@ClausKlein ClausKlein requested a review from aminya September 3, 2023 18:23
@ClausKlein ClausKlein force-pushed the feature/test-docker-build branch 3 times, most recently from c4efb3c to 60b61b5 Compare February 6, 2024 20:17
Copy link
Owner

@aminya aminya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a rebase after #20

Update docker related docu and config

Add simple CMakeWorkflowPresets

Try to use $env{CC} to control the compiler variant

Format CMakePresets files

Do not waste time, use run-clang-tidy

Upgrade project_options

Use cmake workflow on gitlab-ci

Update link to setup-cpp-x64-linux

Install current cmake version with pythone3-pip on CI

Cleanup .gitlab-ci.yml file

Use gcovr on gitlab-ci
Enable clang-tidy on CI builds

Use custom-collapsible-sections
Use CI_compiler variable while build
As recommended in review
Update setup-cpp to v0.36.2

Upgrade to gcovr v6.0

Use newest cmake and project_options
@ClausKlein ClausKlein force-pushed the feature/test-docker-build branch from 70fa53c to 743901c Compare April 4, 2024 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants