forked from google/crc32c
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Sync to upstream #8
Merged
fanquake
merged 7 commits into
bitcoin-core:bitcoin-fork
from
fanquake:sync_to_upstream
Aug 30, 2024
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
d46cd17
Add clangd cache directory to .gitignore.
pwnall bbbb93a
Switch CI to GitHub Actions (#55)
pwnall b9d6e82
Fix Windows CI build. (#54)
pwnall 02e65f4
Bump deps (#56)
pwnall 89f6984
Fix misspelled "Proccess" in comment
Munkybooty 21fc8ef
Fix typo (#59)
rex4539 4a7a05c
Merge remote-tracking branch 'google/main' into bitcoin-fork
fanquake 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 was deleted.
Oops, something went wrong.
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,102 @@ | ||
# Copyright 2021 The CRC32C Authors. All rights reserved. | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. See the AUTHORS file for names of contributors. | ||
|
||
name: ci | ||
on: [push, pull_request] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build-and-test: | ||
name: >- | ||
CI | ||
${{ matrix.os }} | ||
${{ matrix.compiler }} | ||
${{ matrix.optimized && 'release' || 'debug' }} | ||
${{ matrix.shared_lib && 'shared' || 'static' }} | ||
${{ matrix.use_glog && 'glog' || 'no-glog' }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
compiler: [clang, gcc, msvc] | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
optimized: [true, false] | ||
shared_lib: [true, false] | ||
use_glog: [true, false] | ||
exclude: | ||
# Our glog config doesn't work with shared libraries. | ||
- use_glog: true | ||
shared_lib: true | ||
# MSVC only works on Windows. | ||
- os: ubuntu-latest | ||
compiler: msvc | ||
- os: macos-latest | ||
compiler: msvc | ||
# Not testing with GCC on macOS. | ||
- os: macos-latest | ||
compiler: gcc | ||
# Only testing with MSVC on Windows. | ||
- os: windows-latest | ||
compiler: clang | ||
- os: windows-latest | ||
compiler: gcc | ||
# Not testing fringe configurations (glog, shared libraries) on Windows. | ||
- os: windows-latest | ||
use_glog: true | ||
- os: windows-latest | ||
shared_lib: true | ||
include: | ||
- compiler: clang | ||
CC: clang | ||
CXX: clang++ | ||
- compiler: gcc | ||
CC: gcc | ||
CXX: g++ | ||
- compiler: msvc | ||
CC: | ||
CXX: | ||
|
||
env: | ||
CMAKE_BUILD_DIR: ${{ github.workspace }}/build | ||
CMAKE_BUILD_TYPE: ${{ matrix.optimized && 'RelWithDebInfo' || 'Debug' }} | ||
CC: ${{ matrix.CC }} | ||
CXX: ${{ matrix.CXX }} | ||
BINARY_SUFFIX: ${{ startsWith(matrix.os, 'windows') && '.exe' || '' }} | ||
BINARY_PATH: >- | ||
${{ format( | ||
startsWith(matrix.os, 'windows') && '{0}\build\{1}\' || '{0}/build/', | ||
github.workspace, | ||
matrix.optimized && 'RelWithDebInfo' || 'Debug') }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
|
||
- name: Generate build config | ||
run: >- | ||
cmake -S "${{ github.workspace }}" -B "${{ env.CMAKE_BUILD_DIR }}" | ||
-DCMAKE_BUILD_TYPE=${{ env.CMAKE_BUILD_TYPE }} | ||
-DCMAKE_INSTALL_PREFIX=${{ runner.temp }}/install_test/ | ||
-DBUILD_SHARED_LIBS=${{ matrix.shared_lib && '1' || '0' }} | ||
-DCRC32C_USE_GLOG=${{ matrix.use_glog && '1' || '0' }} | ||
|
||
- name: Build | ||
run: >- | ||
cmake --build "${{ env.CMAKE_BUILD_DIR }}" | ||
--config "${{ env.CMAKE_BUILD_TYPE }}" | ||
|
||
- name: Run C++ API Tests | ||
run: ${{ env.BINARY_PATH }}crc32c_tests${{ env.BINARY_SUFFIX }} | ||
|
||
- name: Run C API Tests | ||
run: ${{ env.BINARY_PATH }}crc32c_capi_tests${{ env.BINARY_SUFFIX }} | ||
|
||
- name: Run Benchmarks | ||
run: ${{ env.BINARY_PATH }}crc32c_bench${{ env.BINARY_SUFFIX }} | ||
|
||
- name: Test CMake installation | ||
run: cmake --build "${{ env.CMAKE_BUILD_DIR }}" --target install |
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,6 +1,7 @@ | ||
# Editors. | ||
*.sw* | ||
.DS_Store | ||
/.cache | ||
/.vscode | ||
|
||
# Build directory. | ||
|
This file was deleted.
Oops, something went wrong.
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
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.
This isn't correct for us, but can be fixed later