Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
yongtang committed Nov 9, 2023
1 parent f094205 commit 1f2f1ba
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/build.py
Original file line number Diff line number Diff line change
@@ -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())
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1f2f1ba

Please sign in to comment.