-
Notifications
You must be signed in to change notification settings - Fork 11
Introduce test containers #11
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
Merged
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
55e0750
lay way for testing container
wusatosi c1ed816
add infra for test containers
wusatosi 8ef5a0d
add a test container
wusatosi c6c2167
create vscode user if not exist
wusatosi d0f0b82
update paths
wusatosi cb8c17b
Fix docker
wusatosi 2ca07e0
install gpg
wusatosi e5f7f5f
update matrix
wusatosi 63a9ea5
Add more basic utilities
wusatosi c4a2117
Add more gnu versions
wusatosi f88c899
constrain to latest 4 gnu versions
wusatosi 40b774b
more llvm versions
wusatosi 94cdc33
Update CI workflow name
wusatosi c20f5b9
Merge branch 'main' into test-container-ext
wusatosi 2be898e
add ninja build
wusatosi 1fd43cc
add libc++
wusatosi 2b0467f
fix install
wusatosi e797610
refactor installation
wusatosi 08cdb4c
specify libc
wusatosi c220329
Link gcov
wusatosi eba0af7
Add coverage tool
wusatosi dc94519
move lcov install to after compiler
wusatosi 4fbaae2
remove gcov link
wusatosi 4436d2a
relink gcov
wusatosi cefbbc0
Add llvm 21
wusatosi d3a96a0
change naming for gnu, llvm
wusatosi 8d72419
gccpg -> gnupg
wusatosi 9b69c43
update naming script
wusatosi 6e3a3d3
Update docs
wusatosi 9532de6
Merge remote-tracking branch 'origin/main' into test-container-ext
wusatosi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,37 @@ | ||
| # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
|
|
||
| ARG base_image=mcr.microsoft.com/devcontainers/cpp:1-ubuntu-24.04 | ||
| FROM ${base_image} | ||
|
|
||
| # Create the vscode user | ||
| RUN bash <<EOF | ||
| if ! id "vscode" &>/dev/null; then | ||
| apt-get update && apt-get install -y sudo adduser | ||
| useradd -ms /bin/bash -p "" vscode && usermod -aG sudo vscode | ||
| fi | ||
| EOF | ||
|
|
||
| USER vscode | ||
| WORKDIR /tmp | ||
|
|
||
| COPY install_sys.sh . | ||
| RUN bash install_sys.sh | ||
|
|
||
| # Newer gcc/ clang is needed to avoid ASAN Stalling, which is turned on by default across beman projects. | ||
| # See: https://github.com/google/sanitizers/issues/1614 | ||
| # Minimal version: clang-18.1.3, gcc-13.2 | ||
| ARG compiler_kind=gcc | ||
| ARG compiler_version=14 | ||
|
|
||
| COPY install_compiler.sh . | ||
| RUN bash install_compiler.sh ${compiler_kind} ${compiler_version} | ||
|
|
||
| # Common dependency: google-test | ||
| RUN sudo apt-get install -y libgtest-dev | ||
|
|
||
| # Pre-commit is beman library's standard linting tool | ||
| RUN sudo apt-get install -y pipx | ||
| RUN pipx install pre-commit | ||
| ENV PATH="/home/vscode/.local/bin:${PATH}" | ||
|
|
||
| ENTRYPOINT ["/usr/bin/bash"] |
This file contains hidden or 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 hidden or 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 hidden or 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,10 @@ | ||
| # Install Basic utilities | ||
| sudo apt-get install -y ca-certificates gpg wget git curl | ||
|
|
||
| # Install Latest CMake | ||
| wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null | ||
| echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ noble main' | sudo tee /etc/apt/sources.list.d/kitware.list >/dev/null | ||
| sudo apt-get update && sudo apt-get install -y cmake | ||
|
|
||
| # Install Ninja | ||
| sudo apt-get install -y ninja-build |
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Let's move this all in a python script in the next iteration.