mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-10 23:44:29 +00:00
bazel updates (#291)
This commit is contained in:
parent
40e12d6229
commit
745bf36a64
10 changed files with 34 additions and 54 deletions
5
.bazelignore
Normal file
5
.bazelignore
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
.git
|
||||||
|
.github
|
||||||
|
test
|
||||||
|
doc
|
||||||
|
cmake
|
||||||
9
.bazelrc
9
.bazelrc
|
|
@ -4,15 +4,6 @@ build --incompatible_use_platforms_repo_for_constraints
|
||||||
build --enable_runfiles
|
build --enable_runfiles
|
||||||
build --incompatible_strict_action_env
|
build --incompatible_strict_action_env
|
||||||
|
|
||||||
build:linux --host_platform=@magic_enum//bazel/platforms:linux
|
|
||||||
build:linux --platforms=@magic_enum//bazel/platforms:linux
|
|
||||||
|
|
||||||
build:macos --host_platform=@magic_enum//bazel/platforms:macos
|
|
||||||
build:macos --platforms=@magic_enum//bazel/platforms:macos
|
|
||||||
|
|
||||||
build:windows --host_platform=@magic_enum//bazel/platforms:windows
|
|
||||||
build:windows --platforms=@magic_enum//bazel/platforms:windows
|
|
||||||
|
|
||||||
common:ci --announce_rc
|
common:ci --announce_rc
|
||||||
test:ci --test_output=errors
|
test:ci --test_output=errors
|
||||||
build:ci --curses=no
|
build:ci --curses=no
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
6.1.2
|
6.3.2
|
||||||
|
|
|
||||||
1
.github/workflows/macos.yml
vendored
1
.github/workflows/macos.yml
vendored
|
|
@ -38,4 +38,5 @@ jobs:
|
||||||
|
|
||||||
- name: Bazel Test
|
- name: Bazel Test
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
working-directory: test
|
||||||
run: bazelisk test //... --config=ci
|
run: bazelisk test //... --config=ci
|
||||||
|
|
|
||||||
1
.github/workflows/ubuntu.yml
vendored
1
.github/workflows/ubuntu.yml
vendored
|
|
@ -75,4 +75,5 @@ jobs:
|
||||||
|
|
||||||
- name: Bazel Test
|
- name: Bazel Test
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
working-directory: test
|
||||||
run: bazelisk test //... --config=ci
|
run: bazelisk test //... --config=ci
|
||||||
|
|
|
||||||
1
.github/workflows/windows.yml
vendored
1
.github/workflows/windows.yml
vendored
|
|
@ -44,4 +44,5 @@ jobs:
|
||||||
|
|
||||||
- name: Bazel Test
|
- name: Bazel Test
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
working-directory: test
|
||||||
run: bazelisk test //... --config=ci
|
run: bazelisk test //... --config=ci
|
||||||
|
|
|
||||||
16
MODULE.bazel
16
MODULE.bazel
|
|
@ -1,8 +1,8 @@
|
||||||
module(
|
module(
|
||||||
name = "magic_enum",
|
name = "magic_enum",
|
||||||
version = "0.9.3",
|
version = "0.9.3",
|
||||||
compatibility_level = 0,
|
compatibility_level = 0,
|
||||||
)
|
)
|
||||||
|
|
||||||
bazel_dep(name = "platforms", version = "0.0.6")
|
bazel_dep(name = "rules_cc", version = "0.0.8")
|
||||||
bazel_dep(name = "rules_cc", version = "0.0.6")
|
bazel_dep(name = "bazel_skylib", version = "1.4.2")
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,11 @@
|
||||||
COPTS = select({
|
load("@bazel_skylib//lib:selects.bzl", "selects")
|
||||||
"@bazel_tools//tools/cpp:msvc": ["/std:c++17", "/permissive-"],
|
|
||||||
"//conditions:default": ["-std=c++17"],
|
COPTS = selects.with_or({
|
||||||
})
|
("@rules_cc//cc/compiler:clang", "@rules_cc//cc/compiler:gcc", "@rules_cc//cc/compiler:mingw-gcc"): [
|
||||||
|
"-std=c++17",
|
||||||
|
],
|
||||||
|
("@rules_cc//cc/compiler:msvc-cl", "@rules_cc//cc/compiler:clang-cl"): [
|
||||||
|
"/std:c++17",
|
||||||
|
"/permissive-",
|
||||||
|
],
|
||||||
|
})
|
||||||
|
|
|
||||||
|
|
@ -1,25 +0,0 @@
|
||||||
package(default_visibility = ["//:__subpackages__"])
|
|
||||||
|
|
||||||
platform(
|
|
||||||
name = "linux",
|
|
||||||
constraint_values = [
|
|
||||||
"@platforms//os:linux",
|
|
||||||
"@bazel_tools//tools/cpp:clang",
|
|
||||||
],
|
|
||||||
)
|
|
||||||
|
|
||||||
platform(
|
|
||||||
name = "macos",
|
|
||||||
constraint_values = [
|
|
||||||
"@platforms//os:macos",
|
|
||||||
"@bazel_tools//tools/cpp:clang",
|
|
||||||
],
|
|
||||||
)
|
|
||||||
|
|
||||||
platform(
|
|
||||||
name = "windows",
|
|
||||||
constraint_values = [
|
|
||||||
"@platforms//os:windows",
|
|
||||||
"@bazel_tools//tools/cpp:msvc",
|
|
||||||
],
|
|
||||||
)
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
module(name = "magic_enum_tests")
|
module(name = "magic_enum_tests")
|
||||||
|
|
||||||
bazel_dep(name = "magic_enum")
|
bazel_dep(name = "magic_enum")
|
||||||
bazel_dep(name = "platforms", version = "0.0.6")
|
bazel_dep(name = "rules_cc", version = "0.0.8")
|
||||||
bazel_dep(name = "rules_cc", version = "0.0.6")
|
|
||||||
|
local_path_override(module_name = "magic_enum", path = "..")
|
||||||
local_path_override(module_name = "magic_enum", path = "..")
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue