-
Notifications
You must be signed in to change notification settings - Fork 28
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
Run CI with gcc and clang on all branches #76
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
fd43649
Build CI with gcc and clang, on all branches
ByteHamster 7e5b17d
Avoid warning in clang
ByteHamster f456312
perf and bugfix
stefanfred a224339
Fix uninitialized memory access
ByteHamster e3d7b17
Move to default constructors for bucketer initialization
ByteHamster 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 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,45 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
compiler: | ||
- { name: gcc, version: 11} | ||
- { name: gcc, version: 12} | ||
- { name: gcc, version: 13} | ||
- { name: gcc, version: 14} | ||
- { name: clang, version: 16} | ||
- { name: clang, version: 17} | ||
- { name: clang, version: 18} | ||
name: Build (${{ matrix.compiler.name }} ${{ matrix.compiler.version }}) | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Install dependencies | ||
run: | | ||
sudo add-apt-repository universe | ||
sudo apt-get update | ||
sudo apt-get install --assume-yes --no-install-recommends ca-certificates cmake git | ||
- name: Install GCC | ||
if: ${{ matrix.compiler.name == 'gcc' }} | ||
run: | | ||
sudo apt-get install --assume-yes --no-install-recommends gcc-${{ matrix.compiler.version }} g++-${{ matrix.compiler.version }} | ||
echo "CC=/usr/bin/gcc-${{ matrix.compiler.version }}" >> $GITHUB_ENV | ||
echo "CXX=/usr/bin/g++-${{ matrix.compiler.version }}" >> $GITHUB_ENV | ||
- name: Install Clang | ||
if: ${{ matrix.compiler.name == 'clang' }} | ||
run: | | ||
sudo apt-get install --assume-yes --no-install-recommends clang-${{ matrix.compiler.version }} | ||
echo "CC=/usr/bin/clang-${{ matrix.compiler.version }}" >> $GITHUB_ENV | ||
echo "CXX=/usr/bin/clang++-${{ matrix.compiler.version }}" >> $GITHUB_ENV | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: Build | ||
run: | | ||
cmake -B ./build | ||
cmake --build ./build --parallel |
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,3 +1,5 @@ | ||
build/ | ||
old/ | ||
.DS_Store | ||
cmake-build* | ||
.idea |
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
Submodule bits
updated
4 files
+45 −0 | .github/workflows/build.yml | |
+0 −6 | CMakeLists.txt | |
+3 −0 | include/bit_vector.hpp | |
+27 −0 | test/test_bit_vector.cpp |
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.
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.
@ByteHamster and @stefanfred:
The classes
skew_bucketer
anduniform_bucketer
are already correctly initialized since they have a default constructor. These initializations are therefore redundant. I would add default constructors to all the others that do not have it already.