Skip to content
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

Migrate to Module.bazel, remove submodules, fix build & codeql. #7

Merged
merged 1 commit into from
Jan 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
token: ${{secrets.X_EDR_REPO_PAK}}
submodules: 'true'

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*~
bazel-*
6 changes: 0 additions & 6 deletions .gitmodules

This file was deleted.

45 changes: 45 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
###############################################################################
# Bazel now uses Bzlmod by default to manage external dependencies.
# Please consider migrating your external dependencies from WORKSPACE to MODULE.bazel.
#
# For more details, please check https://github.com/bazelbuild/bazel/issues/18958
###############################################################################

module(
name = "x_edr_trajectory_planning",
)

http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

bazel_dep(name = "abseil-cpp", version = "20230802.0", repo_name = "com_google_absl")

bazel_dep(name = "rules_cc", version = "0.0.9")

bazel_dep(name = "rules_proto", version = "6.0.0-rc1")

bazel_dep(name = "googletest", version = "1.14.0", repo_name = "com_google_googletest")


bazel_dep(name = "eigen", version = "3.4.0")

# GenIt, required for eigenmath below.
_GENIT_VERSION = "1.0.0"
http_archive(
name = "x_edr_genit",
sha256 = "ab1bbb15ecbe86c5c3888a12c56fe88fac416f2f305acaf1bbf7f68c3d429851",
strip_prefix = "x-edr-genit-%s" % _GENIT_VERSION,
urls = [
"https://github.com/theteamatx/x-edr-genit/archive/refs/tags/v%s.tar.gz" % _GENIT_VERSION,
],
)

# Eigenmath
_EIGENMATH_VERSION = "1.0.0"
http_archive(
name = "x_edr_eigenmath",
sha256 = "180bf186214b37190e3f26204a271d214b503b25bd22d4228d8f32e7c7151e05",
strip_prefix = "x-edr-eigenmath-%s" % _EIGENMATH_VERSION,
urls = [
"https://github.com/theteamatx/x-edr-eigenmath/archive/refs/tags/v%s.tar.gz" % _EIGENMATH_VERSION,
],
)
Loading
Loading