fix kokoro tests (remaining refs to package.xml

pull/10830/head
Sandy Zhang 2 years ago
parent ebc3f4f0dd
commit ccee798c7d
  1. 4
      .github/workflows/php-ext.yml
  2. 6
      php/BUILD.bazel
  3. 6
      php/ext/google/protobuf/BUILD.bazel

@ -28,6 +28,10 @@ jobs:
rm -rf "$GITHUB_WORKSPACE/php/ext/google/protobuf/third_party"
cp -r "$GITHUB_WORKSPACE/third_party" "$GITHUB_WORKSPACE/php/ext/google/protobuf"
cp "$GITHUB_WORKSPACE/LICENSE" "$GITHUB_WORKSPACE/php/ext/google/protobuf"
- name: Generate package.xml
run: |
bazel build $GITHUB_WORKSPACE/php/ext/google/protobuf:generate_package_xml
cp $GITHUB_WORKSPACE/bazel-bin/php/ext/google/protobuf/package.xml $GITHUB_WORKSPACE/php/ext/google/protobuf/package.xml
- name: Create package
run: |
cd /tmp

@ -14,15 +14,11 @@ filegroup(
"//php:__pkg__",
],
srcs = glob([
"ext/google/protobuf/*.h",
"ext/google/protobuf/*.c",
"src/GPBMetadata/Google/Protobuf/**/*.php",
"src/Google/Protobuf/**/*.php",
]) + [
"composer.json",
"ext/google/protobuf/wkt.inc",
"ext/google/protobuf/config.m4",
"ext/google/protobuf/package.xml",
"//php/ext/google/protobuf:source_files",
],
)

@ -17,12 +17,12 @@ pkg_files(
)
pkg_files(
name = "protobuf_files",
name = "source_files",
srcs = glob([
"*.h",
"*.c",
]) + [
"//:LICENSE",
"LICENSE",
"config.m4",
"wkt.inc",
],
@ -31,7 +31,7 @@ pkg_files(
pkg_filegroup(
name = "release_files",
srcs = [
":protobuf_files",
":source_files",
":utf8_range_files",
],
)

Loading…
Cancel
Save