-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from jjerphan/refactor/binary_encoding
Sync with `main` + potential suggestions / rest of implementation (if any)
- Loading branch information
Showing
43 changed files
with
9,071 additions
and
62 deletions.
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,5 @@ | ||
BasedOnStyle: Google | ||
IndentWidth: 4 | ||
IndentAccessModifiers: false | ||
AccessModifierOffset: -4 | ||
ColumnLimit: 100 |
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,3 @@ | ||
# GitHub syntax highlighting | ||
pixi.lock linguist-language=YAML | ||
|
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,77 @@ | ||
on: | ||
push: | ||
branches: | ||
- "main" | ||
pull_request: | ||
|
||
name: C++ | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
format: | ||
name: Format and Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v4 | ||
|
||
- uses: prefix-dev/[email protected] | ||
with: | ||
environments: format-cpp | ||
|
||
- name: Ensure code is properly formatted | ||
run: | | ||
pixi run format-cpp | ||
git diff --exit-code | ||
test: | ||
name: Test | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-20.04, macOS-latest, macOS-14, windows-latest ] | ||
runs-on: ${{ matrix.os }} | ||
needs: [ format ] | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v4 | ||
|
||
- uses: prefix-dev/[email protected] | ||
with: | ||
environments: test-cpp | ||
|
||
- name: Run the tests | ||
run: | | ||
pixi run test-cpp | ||
package: | ||
name: Create conda packages | ||
strategy: | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
target-platform: linux-64 | ||
- os: ubuntu-latest | ||
target-platform: linux-aarch64 | ||
- os: windows-latest | ||
target-platform: win-64 | ||
- os: macos-latest | ||
target-platform: osx-64 | ||
- os: macos-14 | ||
target-platform: osx-arm64 | ||
runs-on: ${{ matrix.os }} | ||
needs: [ format ] | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v4 | ||
- name: Build conda package | ||
uses: prefix-dev/[email protected] | ||
with: | ||
recipe-path: recipe/recipe.yaml | ||
# needs to be unique for each matrix entry | ||
artifact-name: package-${{ matrix.target-platform }} | ||
build-args: --target-platform ${{ matrix.target-platform }}${{ matrix.target-platform == 'linux-aarch64' && ' --no-test' || '' }} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
cmake_minimum_required(VERSION 3.21) | ||
|
||
project(resolvo LANGUAGES CXX) | ||
|
||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
|
||
include(FeatureSummary) | ||
|
||
option(RESOLVO_BUILD_TESTING "Build tests" OFF) | ||
add_feature_info(RESOLVO_BUILD_TESTING RESOLVO_BUILD_TESTING | ||
"configure whether to build the test suite") | ||
include(CTest) | ||
|
||
set(RESOLVO_IS_TOPLEVEL_BUILD TRUE) | ||
|
||
# Place all compiled examples into the same bin directory on Windows, where | ||
# we'll also put the dll | ||
if(WIN32) | ||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) | ||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) | ||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/bin/debug) | ||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/bin/release) | ||
elseif(APPLE) | ||
# On macOS, the resolvo_cpp.dylib's install_name uses @rpath. CMake doesn't | ||
# set BUILD_RPATH for imported targets though, so include the directory here | ||
# by hand in the rpath used to build binaries in the build tree (such as our | ||
# examples or tests). | ||
set(CMAKE_BUILD_RPATH ${CMAKE_BINARY_DIR}/cpp) | ||
endif() | ||
|
||
add_subdirectory(cpp/) | ||
|
||
feature_summary(WHAT ENABLED_FEATURES DESCRIPTION "Enabled features:") | ||
feature_summary(WHAT DISABLED_FEATURES DESCRIPTION "Disabled features:") |
Oops, something went wrong.