From 1f2f1ba237423dfd25c2ddaf7367d19abf2cbe51 Mon Sep 17 00:00:00 2001 From: Yong Tang Date: Thu, 9 Nov 2023 04:25:09 +0000 Subject: [PATCH] Revert --- .github/workflows/build.py | 27 +++++++++++++++++++++++++++ .github/workflows/build.yml | 4 +++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build.py diff --git a/.github/workflows/build.py b/.github/workflows/build.py new file mode 100644 index 000000000..cc69c1415 --- /dev/null +++ b/.github/workflows/build.py @@ -0,0 +1,27 @@ +import subprocess, sys, os + +path = os.getcwd() +with subprocess.Popen( + [ + "docker", + "run", + "-i", + "-e", + "TF_PYTHON_VERSION=3.9", + "-v", + f"{path}:/v", + "-w", + "/v", + "--net=host", + "--entrypoint=/bin/bash", + "gcr.io/tensorflow-testing/nosla-cuda12.0.1-cudnn8.8-ubuntu20.04-manylinux2014-multipython", + "-x", + "-e", + ".github/workflows/build.bazel.sh", + "python3.9", + ], + stdout=subprocess.PIPE, + stderr=subprocess.STDOUT, + ) as process: + for line in process.stdout: + print(line.decode().translate(dict.fromkeys(range(32))).strip()) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 82dd36ab6..6d10e5db5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -307,7 +307,9 @@ jobs: if [[ "${{ env.EVENT_NAME }}" == "push" && "${{ env.REPO_NAME }}" == "tensorflow/io" ]]; then export BAZEL_OPTIMIZATION="$BAZEL_OPTIMIZATION --remote_upload_local_results=true --google_credentials=service_account_creds.json" fi - docker run -e TF_PYTHON_VERSION=3.9 -v $PWD:/v -w /v --net=host quay.io/pypa/manylinux2014_x86_64 bash -x .github/workflows/build.bazel.sh python3.9 + #docker run -e TF_PYTHON_VERSION=3.9 -v $PWD:/v -w /v --net=host quay.io/pypa/manylinux2014_x86_64 bash -x .github/workflows/build.bazel.sh python3.9 + #docker run -e TF_PYTHON_VERSION=3.9 -v $PWD:/v -w /v --net=host --entrypoint=/bin/bash gcr.io/tensorflow-testing/nosla-cuda12.0.1-cudnn8.8-ubuntu20.04-manylinux2014-multipython -x -e .github/workflows/build.bazel.sh python3.9 + python3 .github/workflows/build.py sudo cp .bazelrc build/tensorflow_io/ sudo chown -R $(id -nu):$(id -ng) . - uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3