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" rm -rf "$GITHUB_WORKSPACE/php/ext/google/protobuf/third_party"
cp -r "$GITHUB_WORKSPACE/third_party" "$GITHUB_WORKSPACE/php/ext/google/protobuf" cp -r "$GITHUB_WORKSPACE/third_party" "$GITHUB_WORKSPACE/php/ext/google/protobuf"
cp "$GITHUB_WORKSPACE/LICENSE" "$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 - name: Create package
run: | run: |
cd /tmp cd /tmp

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

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

Loading…
Cancel
Save