Skip to content

Commit

Permalink
Use --host_force_python=PY2 when building the Linux release (#696)
Browse files Browse the repository at this point in the history
* Use --host_force_python=PY2 when building the Linux release

This is a workaround for bazelbuild/bazel#8443

* Add comment explaining the flag.
  • Loading branch information
philwo authored Jun 4, 2019
1 parent bab536a commit ac39be8
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions pipelines/bazel-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,21 @@ steps:
mkdir output
cp bazel-bin/src/bazel output/bazel
output/bazel build -c opt --stamp --sandbox_tmpfs_path=/tmp --embed_label "\${release_name}" --workspace_status_command=scripts/ci/build_status_command.sh src/bazel scripts/packages/with-jdk/install.sh scripts/packages/debian/bazel-debian.deb scripts/packages/debian/bazel.dsc scripts/packages/debian/bazel.tar.gz bazel-distfile.zip
# TODO(philwo) remove --host_force_python=PY2 when this is fixed:
# /~https://github.com/bazelbuild/bazel/issues/8443
output/bazel build \
-c opt \
--stamp \
--sandbox_tmpfs_path=/tmp \
--embed_label "\${release_name}" \
--workspace_status_command=scripts/ci/build_status_command.sh \
--host_force_python=PY2 \
src/bazel \
scripts/packages/with-jdk/install.sh \
scripts/packages/debian/bazel-debian.deb \
scripts/packages/debian/bazel.dsc \
scripts/packages/debian/bazel.tar.gz \
bazel-distfile.zip
mkdir artifacts
cp "bazel-bin/src/bazel" "artifacts/bazel-\${release_name}-linux-x86_64"
Expand All @@ -93,7 +107,14 @@ steps:
mkdir output
cp bazel-bin/src/bazel output/bazel
output/bazel build --define IPHONE_SDK=1 -c opt --stamp --embed_label "\${release_name}" --workspace_status_command=scripts/ci/build_status_command.sh src/bazel scripts/packages/with-jdk/install.sh
output/bazel build \
--define IPHONE_SDK=1 \
-c opt \
--stamp \
--embed_label "\${release_name}" \
--workspace_status_command=scripts/ci/build_status_command.sh \
src/bazel \
scripts/packages/with-jdk/install.sh
mkdir artifacts
cp "bazel-bin/src/bazel" "artifacts/bazel-\${release_name}-darwin-x86_64"
Expand Down

0 comments on commit ac39be8

Please sign in to comment.