Skip to content

Commit

Permalink
Fixed CI
Browse files Browse the repository at this point in the history
Signed-off-by: Marvin Hansen <[email protected]>
  • Loading branch information
marvin-hansen committed Oct 8, 2024
1 parent c3d0891 commit 8fd5afd
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
8 changes: 0 additions & 8 deletions examples/bzlmod/cross_compile/.bazelignore

This file was deleted.

2 changes: 1 addition & 1 deletion examples/bzlmod/cross_compile/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

# Don't create bazel-* symlinks in the WORKSPACE directory.
# Instead, set a prefix and put it in .gitignore
build --symlink_prefix=target-bzl/
build --symlink_prefix=target-bzl

# Non-empty glob test is disabled because some Bazels deps fail the test.
# build --incompatible_disallow_empty_glob
Expand Down
15 changes: 12 additions & 3 deletions examples/bzlmod/cross_compile/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,30 @@ filegroup(
rust_binary(
name = "hello_world_host",
srcs = ["src/main.rs"],
deps = [],
deps = [
"@crates//:mimalloc",
"@crates//:lz4-sys",
],
)

rust_binary(
name = "hello_world_x86_64",
srcs = ["src/main.rs"],
platform = "//build/platforms:linux-x86_64",
deps = [],
deps = [
"@crates//:mimalloc",
"@crates//:lz4-sys",
],
)

rust_binary(
name = "hello_world_aarch64",
srcs = ["src/main.rs"],
platform = "//build/platforms:linux-aarch64",
deps = [],
deps = [
"@crates//:mimalloc",
"@crates//:lz4-sys",
],
)

# Test if the host binary works.
Expand Down
4 changes: 2 additions & 2 deletions examples/bzlmod/hello_world_no_cargo/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ rust_binary(
name = "hello_world",
srcs = ["src/main.rs"],
deps = [
"@crates//:mimalloc",
"@crates//:lz4-sys",
"@crates//:anyhow",
"@crates//:uuid",
],
)

0 comments on commit 8fd5afd

Please sign in to comment.