Skip to content

Commit 1f2f1ba

Browse files
committed
Revert
1 parent f094205 commit 1f2f1ba

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

.github/workflows/build.py

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import subprocess, sys, os
2+
3+
path = os.getcwd()
4+
with subprocess.Popen(
5+
[
6+
"docker",
7+
"run",
8+
"-i",
9+
"-e",
10+
"TF_PYTHON_VERSION=3.9",
11+
"-v",
12+
f"{path}:/v",
13+
"-w",
14+
"/v",
15+
"--net=host",
16+
"--entrypoint=/bin/bash",
17+
"gcr.io/tensorflow-testing/nosla-cuda12.0.1-cudnn8.8-ubuntu20.04-manylinux2014-multipython",
18+
"-x",
19+
"-e",
20+
".github/workflows/build.bazel.sh",
21+
"python3.9",
22+
],
23+
stdout=subprocess.PIPE,
24+
stderr=subprocess.STDOUT,
25+
) as process:
26+
for line in process.stdout:
27+
print(line.decode().translate(dict.fromkeys(range(32))).strip())

.github/workflows/build.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,9 @@ jobs:
307307
if [[ "${{ env.EVENT_NAME }}" == "push" && "${{ env.REPO_NAME }}" == "tensorflow/io" ]]; then
308308
export BAZEL_OPTIMIZATION="$BAZEL_OPTIMIZATION --remote_upload_local_results=true --google_credentials=service_account_creds.json"
309309
fi
310-
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
310+
#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
311+
#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
312+
python3 .github/workflows/build.py
311313
sudo cp .bazelrc build/tensorflow_io/
312314
sudo chown -R $(id -nu):$(id -ng) .
313315
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3

0 commit comments

Comments
 (0)