Skip to content

Commit

Permalink
bazel update
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizux committed Mar 21, 2024
1 parent dfd069b commit 1cfa5ba
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 24 deletions.
27 changes: 19 additions & 8 deletions BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_test")

cc_binary(
name = "basic_example",
srcs = ["basic_example.cc"],
deps = [
"@com_google_ortools//ortools/base",
"@com_google_ortools//ortools/init",
"@com_google_ortools//ortools/linear_solver",
"@com_google_ortools//ortools/linear_solver:linear_solver_cc_proto",
],
name = "basic_example",
srcs = ["basic_example.cc"],
deps = [
"@com_google_ortools//ortools/base",
"@com_google_ortools//ortools/init",
"@com_google_ortools//ortools/linear_solver",
"@com_google_ortools//ortools/linear_solver:linear_solver_cc_proto",
],
)

cc_test(
name = "basic_example_test",
srcs = ["basic_example.cc"],
deps = [
":basic_example",
"@com_google_ortools//ortools/base",
"@com_google_ortools//ortools/init",
"@com_google_ortools//ortools/linear_solver",
"@com_google_ortools//ortools/linear_solver:linear_solver_cc_proto",
],
)
4 changes: 2 additions & 2 deletions ci/docker/almalinux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ FROM devel as build
RUN bazel version
RUN bazel build \
-c opt \
//main/...
...

FROM build as test
RUN bazel test \
-c opt \
--test_output=all \
//main/...
...
4 changes: 2 additions & 2 deletions ci/docker/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ RUN bazel version
RUN bazel build \
-c opt \
--host_javabase=@local_jdk//:jdk \
//main:all
...

FROM build as test
RUN bazel test \
-c opt \
--host_javabase=@local_jdk//:jdk \
--test_output=all \
//main:all
...
4 changes: 2 additions & 2 deletions ci/docker/archlinux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ FROM devel as build
RUN bazel version
RUN bazel build \
-c opt \
//main:all
...

FROM build as test
RUN bazel test \
-c opt \
--test_output=all \
//main:all
...
4 changes: 2 additions & 2 deletions ci/docker/debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ FROM devel as build
RUN bazel version
RUN bazel build \
-c opt \
//main:all
...

FROM build as test
RUN bazel test \
-c opt \
--test_output=all \
//main:all
...
4 changes: 2 additions & 2 deletions ci/docker/fedora/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ FROM devel AS build
RUN bazel version
RUN bazel build \
-c opt \
//main:all
...

FROM build as test
RUN bazel test \
-c opt \
--test_output=all \
//main:all
...
4 changes: 2 additions & 2 deletions ci/docker/opensuse/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ FROM devel as build
RUN bazel version
RUN bazel build \
-c opt \
//main:all
...

FROM build as test
RUN bazel test \
-c opt \
--test_output=all \
//main:all
...
4 changes: 2 additions & 2 deletions ci/docker/rockylinux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ FROM devel as build
RUN bazel version
RUN bazel build \
-c opt \
//main/...
...

FROM build as test
RUN bazel test \
-c opt \
--test_output=all \
//main/...
...
4 changes: 2 additions & 2 deletions ci/docker/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ FROM devel as build
RUN bazel version
RUN bazel build \
-c opt \
//main:all
...

FROM build as test
RUN bazel test \
-c opt \
--test_output=all \
//main:all
...

0 comments on commit 1cfa5ba

Please sign in to comment.