Skip to content

Commit

Permalink
More
Browse files Browse the repository at this point in the history
  • Loading branch information
pjreiniger committed Dec 28, 2023
1 parent c3961c2 commit 498a5be
Show file tree
Hide file tree
Showing 9 changed files with 1,641 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

82 changes: 82 additions & 0 deletions tests/.bazelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
try-import user.bazelrc

# build --javacopt=-Werror
build --javacopt=-Xlint:all,-serial,-processing,-options

# Windows
build:windows --copt=/W3
build:windows --copt=/WX
build:windows --copt=/std:c++20
build:windows --copt=/Zc:preprocessor
build:windows --copt=/wd5105
build:windows --cxxopt=/wd4146
build:windows --cxxopt=/wd4267
build:windows --cxxopt=/wd4244

# Windows Arm
build:windows_arm --copt=/W3
build:windows_arm --copt=/WX
build:windows_arm --copt=/std:c++20
build:windows_arm --copt=/Zc:preprocessor
build:windows_arm --copt=/wd5105
build:windows_arm --cxxopt=/wd4146
build:windows_arm --cxxopt=/wd4267
build:windows_arm --cxxopt=/wd4244
build:windows_arm --cpu=x64_arm64_windows

# Linux
build:linux --copt=-Wall
build:linux --copt=-Wextra
build:linux --copt=-Werror
build:linux --copt=-std=c++20
build:linux --linkopt=-pthread

# MacOS
build:macos --copt=-Wall
build:macos --copt=-Wextra
build:macos --copt=-Werror
build:macos --copt=-std=c++20
build:macos --cxxopt=-Wno-unused-parameter
build:macos --cxxopt=-Wno-error=deprecated-declarations
build:macos --cxxopt=-Wno-error=deprecated-enum-enum-conversion
build:macos --cxxopt=-Wno-error=deprecated-anon-enum-enum-conversion
build:macos --cxxopt=-Wno-error=inconsistent-missing-override
build:macos --cxxopt=-Wno-error=overloaded-virtual

# Roborio
build:roborio --incompatible_enable_cc_toolchain_resolution
build:roborio --copt=-std=c++20
build:roborio --platforms=@rules_bzlmodrio_toolchains//platforms/roborio
build:roborio --build_tag_filters=-no-roborio
build:roborio --features=compiler_param_file
build:roborio --platform_suffix=roborio

# bullseye32
build:bullseye32 --incompatible_enable_cc_toolchain_resolution
build:bullseye32 --copt=-std=c++20
build:bullseye32 --platforms=@rules_bzlmodrio_toolchains//platforms/bullseye32
build:bullseye32 --build_tag_filters=-no-bullseye
build:bullseye32 --features=compiler_param_file
build:bullseye32 --platform_suffix=bullseye32

# bullseye64
build:bullseye64 --incompatible_enable_cc_toolchain_resolution
build:bullseye64 --copt=-std=c++20
build:bullseye64 --platforms=@rules_bzlmodrio_toolchains//platforms/bullseye64
build:bullseye64 --build_tag_filters=-no-bullseye
build:bullseye64 --features=compiler_param_file
build:bullseye64 --platform_suffix=bullseye64

# rasppi
build:raspi32 --incompatible_enable_cc_toolchain_resolution
build:raspi32 --copt=-std=c++20
build:raspi32 --platforms=@rules_bzlmodrio_toolchains//platforms/raspi32
build:raspi32 --build_tag_filters=-no-raspi
build:raspi32 --features=compiler_param_file
build:raspi32 --platform_suffix=raspi32

# Global
import .bazelrc-buildbuddy
test --test_output=errors
build --java_language_version=17
build --registry=https://raw.githubusercontent.com/pjreiniger/bazel-central-registry/bzlmodrio/
10 changes: 10 additions & 0 deletions tests/.bazelrc-buildbuddy
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
build:remote --bes_results_url=https://app.buildbuddy.io/invocation/
build:remote --bes_backend=grpcs://remote.buildbuddy.io
build:remote --remote_cache=grpcs://remote.buildbuddy.io
build:remote --remote_download_toplevel # Helps remove network bottleneck if caching is enabled
build:remote --remote_timeout=3600

build --experimental_inmemory_jdeps_files
build --experimental_inmemory_dotd_files

build:ci --build_metadata=ROLE=CI
1 change: 1 addition & 0 deletions tests/.bazelversion
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7.0.0
1 change: 0 additions & 1 deletion tests/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ load("@rules_java//java:defs.bzl", "java_binary")
java_binary(
name = "BasicTest",
srcs = ["BasicTest.java"],
data = ["@roborio_jre//file"],
main_class = "BasicTest",
)
9 changes: 9 additions & 0 deletions tests/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
bazel_dep(name = "rules_bzlmodrio_jdk", version = "")

local_path_override(
module_name = "rules_bzlmodrio_jdk",
path = "..",
)


bazel_dep(name = "rules_java", version = "7.1.0")
Loading

0 comments on commit 498a5be

Please sign in to comment.