Giter Club home page Giter Club logo

bead_gym's Introduction

Github-CI:

OS Bazel CMake
Linux Build Status Build Status
MacOS Build Status Build Status
Windows Build Status Build Status
Docker Build Status Build Status

Introduction

| Requirement | Codemap | Dependencies | Build | Bazel CI | CMake CI | Appendices | License |

Bazel C++ and pybind11 sample with tests and GitHub CI support.
This project should run on GNU/Linux, MacOS and Windows.

note: A CMake support is also provided as comparison

Requirement

You'll need:

  • "Bazel >= 6.0".
  • "CMake >= 3.25".

Codemap

The project layout is as follow:

note: Due to a limitation of bazel and protoc directory layout must follow the python module hierarchy (ed in CMake we create our python layout in the ${PROJECT_BINARY_DIR}/python so we don't have any constraint on the source layout). ref: protocolbuffers/protobuf#7061

Build

To build this example you should use:

  • on UNIX:

    bazel build -c opt --action_env=BAZEL_CXXOPTS="-std=c++17" --subcommands=true ...
  • on Windows when using MSVC:

    bazel build -c opt --cxxopt="/std:c++17" --subcommands=true ...

Running Tests

To build this example you should use:

  • on UNIX:

    bazel test -c opt --action_env=BAZEL_CXXOPTS="-std=c++17" --test_output=errors --nocache_test_results ...
  • on Windows when using MSVC:

    bazel test -c opt --cxxopt="/std:c++17" --test_output=errors --nocache_test_results ...

CI Setup

Please take a look at .github/workflows to find the configuration file for each jobs.

To install bazel on each hosted runner, follow these links: ref: https://docs.github.com/en/actions/using-github-hosted-runners/customizing-github-hosted-runners#installing-software-on-windows-runners

Appendices

Few links on the subject...

Resources

Project layout:

  • The Pitchfork Layout Revision 1 (cxx-pflR1)

Bazel:

Misc

Image has been generated using plantuml:

plantuml -Tsvg docs/{file}.dot

So you can find the dot source files in docs.

License

Apache 2. See the LICENSE file for details.

Disclaimer

This is not an official Google product, it is just code that happens to be owned by Google.

bead_gym's People

Contributors

mizux avatar ondrasej avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.