Update bazel scripts

pull/12378/head
Romfos 2 years ago
parent 77c1100793
commit aa6eece487
  1. 2
      csharp/BUILD.bazel
  2. 2
      csharp/src/Google.Protobuf.Conformance/BUILD.bazel

@ -73,7 +73,7 @@ inline_sh_test(
pushd `dirname $(location src/Google.Protobuf.sln)`/.. pushd `dirname $(location src/Google.Protobuf.sln)`/..
dotnet restore src/Google.Protobuf.sln dotnet restore src/Google.Protobuf.sln
dotnet build -c Release src/Google.Protobuf.sln dotnet build -c Release src/Google.Protobuf.sln
dotnet test -c Release -f netcoreapp3.1 src/Google.Protobuf.Test/Google.Protobuf.Test.csproj dotnet test -c Release -f net6.0 src/Google.Protobuf.Test/Google.Protobuf.Test.csproj
popd popd
""", """,
) )

@ -61,7 +61,7 @@ genrule(
SRCDIR=$$(dirname $(location :Program.cs)) SRCDIR=$$(dirname $(location :Program.cs))
cp $(location //conformance:conformance_csharp_proto) $$SRCDIR cp $(location //conformance:conformance_csharp_proto) $$SRCDIR
DOTNET_CLI_HOME=/tmp ./$(location :build_conformance_test) DOTNET_CLI_HOME=/tmp ./$(location :build_conformance_test)
cp -r $$SRCDIR/bin/Release/netcoreapp3.1/* $(RULEDIR) cp -r $$SRCDIR/bin/Release/net6.0/* $(RULEDIR)
""", """,
) )

Loading…
Cancel
Save