@@ -111,7 +111,7 @@ jobs:
111
111
BAZEL_VERSION=$(cat .bazelversion)
112
112
curl -sSOL https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel-${BAZEL_VERSION}-installer-${BAZEL_OS}-x86_64.sh
113
113
sudo bash -e bazel-${BAZEL_VERSION}-installer-${BAZEL_OS}-x86_64.sh
114
- sudo python3 -m pip install $(python3 setup.py --package-version )
114
+ sudo python3 -m pip install $(python3 setup.py --install-require )
115
115
python3 tools/build/configure.py
116
116
bazel build \
117
117
${BAZEL_OPTIMIZATION} \
@@ -120,11 +120,16 @@ jobs:
120
120
--noshow_loading_progress \
121
121
--verbose_failures \
122
122
--test_output=errors \
123
- //tensorflow_io/...
124
- - uses : actions/upload-artifact@v1
123
+ //tensorflow_io/... //tensorflow_io_plugin_gs/...
124
+ mkdir build
125
+ cp -r bazel-bin/tensorflow_io build
126
+ cp -r bazel-bin/tensorflow_io_plugin_gs build
127
+ - uses : actions/upload-artifact@v2
125
128
with :
126
129
name : ${{ runner.os }}-bazel-bin
127
- path : bazel-bin/tensorflow_io
130
+ path : |
131
+ build/tensorflow_io
132
+ build/tensorflow_io_plugin_gs
128
133
129
134
macos-wheel :
130
135
name : Wheel ${{ matrix.python }} macOS
@@ -138,7 +143,7 @@ jobs:
138
143
- uses : actions/download-artifact@v1
139
144
with :
140
145
name : ${{ runner.os }}-bazel-bin
141
- path : bazel-bin/tensorflow_io
146
+ path : bazel-bin
142
147
- uses : actions/setup-python@v1
143
148
with :
144
149
python-version : ${{ matrix.python }}
@@ -147,7 +152,8 @@ jobs:
147
152
set -x -e
148
153
python -m pip install -U wheel setuptools
149
154
python --version
150
- python setup.py --data bazel-bin -q bdist_wheel --plat-name macosx_10_14_x86_64
155
+ python setup.py --project tensorflow-io --data bazel-bin -q bdist_wheel --plat-name macosx_10_14_x86_64
156
+ python setup.py --project tensorflow-io-plugin-gs --data bazel-bin -q bdist_wheel --plat-name macosx_10_14_x86_64
151
157
- name : Auditwheel ${{ matrix.python }} macOS
152
158
run : |
153
159
set -x -e
@@ -158,7 +164,7 @@ jobs:
158
164
delocate-wheel -w wheelhouse $f
159
165
done
160
166
ls wheelhouse/*
161
- - uses : actions/upload-artifact@v1
167
+ - uses : actions/upload-artifact@v2
162
168
with :
163
169
name : ${{ runner.os }}-${{ matrix.python }}-wheel
164
170
path : wheelhouse
@@ -195,7 +201,8 @@ jobs:
195
201
set -x -e
196
202
python --version
197
203
df -h
198
- (cd wheelhouse && python -m pip install *.whl)
204
+ (cd wheelhouse && python -m pip install tensorflow_io_plugin_gs-*.whl)
205
+ (cd wheelhouse && python -m pip install tensorflow_io-*.whl)
199
206
- name : Test ${{ matrix.python }} macOS
200
207
run : |
201
208
set -x -e
@@ -225,11 +232,14 @@ jobs:
225
232
gcr.io/tensorflow-testing/nosla-ubuntu16.04-manylinux2010@sha256:3a9b4820021801b1fa7d0592c1738483ac7abc209fc6ee8c9ef06cf2eab2d170 /v/.github/workflows/build.bazel.sh
226
233
sudo chown -R $(id -nu):$(id -ng) .
227
234
sudo find build/tensorflow_io -name '*runfiles*' | sudo xargs rm -rf
235
+ sudo find build/tensorflow_io_plugin_gs -name '*runfiles*' | sudo xargs rm -rf
228
236
sudo cp .bazelrc build/tensorflow_io/
229
- - uses : actions/upload-artifact@v1
237
+ - uses : actions/upload-artifact@v2
230
238
with :
231
239
name : ${{ runner.os }}-bazel-bin
232
- path : build/tensorflow_io
240
+ path : |
241
+ build/tensorflow_io
242
+ build/tensorflow_io_plugin_gs
233
243
234
244
linux-wheel :
235
245
name : Wheel ${{ matrix.python }} Linux
@@ -243,12 +253,13 @@ jobs:
243
253
- uses : actions/download-artifact@v1
244
254
with :
245
255
name : ${{ runner.os }}-bazel-bin
246
- path : bazel-bin/tensorflow_io
256
+ path : bazel-bin
247
257
- name : Wheel ${{ matrix.python }} Linux
248
258
run : |
249
259
set -x -e
250
260
mv bazel-bin/tensorflow_io/.bazelrc .
251
- docker run -i --rm --user $(id -u):$(id -g) -v /etc/password:/etc/password -v $PWD:/v -w /v --net=host python:${{ matrix.python }}-slim python setup.py --data bazel-bin -q bdist_wheel
261
+ docker run -i --rm --user $(id -u):$(id -g) -v /etc/password:/etc/password -v $PWD:/v -w /v --net=host python:${{ matrix.python }}-slim python setup.py --project tensorflow-io --data bazel-bin -q bdist_wheel
262
+ docker run -i --rm --user $(id -u):$(id -g) -v /etc/password:/etc/password -v $PWD:/v -w /v --net=host python:${{ matrix.python }}-slim python setup.py --project tensorflow-io-plugin-gs --data bazel-bin -q bdist_wheel
252
263
- name : Auditwheel ${{ matrix.python }} Linux
253
264
run : |
254
265
set -x -e
@@ -258,7 +269,7 @@ jobs:
258
269
done
259
270
sudo chown -R $(id -nu):$(id -ng) .
260
271
ls wheelhouse/*
261
- - uses : actions/upload-artifact@v1
272
+ - uses : actions/upload-artifact@v2
262
273
with :
263
274
name : ${{ runner.os }}-${{ matrix.python }}-wheel
264
275
path : wheelhouse
@@ -334,14 +345,19 @@ jobs:
334
345
python3 --version
335
346
python3 -m pip install wheel setuptools
336
347
python3 -m pip --version
337
- python3 setup.py --package-version | xargs python3 -m pip install
348
+ python3 setup.py --install-require | xargs python3 -m pip install
338
349
python3 tools/build/configure.py
339
350
cat .bazelrc
340
- bazel build -s --verbose_failures %BAZEL_OPTIMIZATION% //tensorflow_io/core:python/ops/libtensorflow_io.so //tensorflow_io/core:python/ops/libtensorflow_io_plugins.so
341
- - uses : actions/upload-artifact@v1
351
+ bazel build -s --verbose_failures %BAZEL_OPTIMIZATION% //tensorflow_io/core:python/ops/libtensorflow_io.so //tensorflow_io/core:python/ops/libtensorflow_io_plugins.so //tensorflow_io_plugin_gs/...
352
+ mkdir build
353
+ cp -r bazel-bin/tensorflow_io build
354
+ cp -r bazel-bin/tensorflow_io_plugin_gs build
355
+ - uses : actions/upload-artifact@v2
342
356
with :
343
357
name : ${{ runner.os }}-bazel-bin
344
- path : bazel-bin/tensorflow_io
358
+ path : |
359
+ build/tensorflow_io
360
+ build/tensorflow_io_plugin_gs
345
361
346
362
windows-wheel :
347
363
name : Wheel ${{ matrix.python }} Windows
@@ -355,7 +371,7 @@ jobs:
355
371
- uses : actions/download-artifact@v1
356
372
with :
357
373
name : ${{ runner.os }}-bazel-bin
358
- path : bazel-bin/tensorflow_io
374
+ path : bazel-bin
359
375
- uses : actions/setup-python@v1
360
376
with :
361
377
python-version : ${{ matrix.python }}
@@ -365,9 +381,10 @@ jobs:
365
381
@echo on
366
382
python --version
367
383
python -m pip install -U wheel setuptools
368
- python setup.py --data bazel-bin -q bdist_wheel
384
+ python setup.py --project tensorflow-io --data bazel-bin -q bdist_wheel
385
+ python setup.py --project tensorflow-io-plugin-gs --data bazel-bin -q bdist_wheel
369
386
ls -la dist
370
- - uses : actions/upload-artifact@v1
387
+ - uses : actions/upload-artifact@v2
371
388
with :
372
389
name : ${{ runner.os }}-${{ matrix.python }}-wheel
373
390
path : dist
@@ -401,14 +418,15 @@ jobs:
401
418
run : |
402
419
@echo on
403
420
python --version
404
- (cd wheel && ls *.whl | xargs python -m pip install)
421
+ (cd wheel && ls tensorflow_io_plugin_gs-*.whl | xargs python -m pip install && cd ..)
422
+ (cd wheel && ls tensorflow_io-*.whl | xargs python -m pip install && cd ..)
405
423
- name : Test ${{ matrix.python }} Windows
406
424
shell : cmd
407
425
run : |
408
426
@echo on
409
427
python --version
410
428
python -m pip install -U pytest-benchmark
411
- rm -rf tensorflow_io
429
+ rm -rf tensorflow_io tensorflow_io_plugin_gs
412
430
(cd tests && python -m pytest -s -v test_lmdb.py)
413
431
(python -m pytest -s -v test_image.py -k "webp or ppm or bmp or bounding or exif or hdr or openexr or tiff or avif")
414
432
(python -m pytest -s -v test_serialization.py)
@@ -489,7 +507,7 @@ jobs:
489
507
cp Windows-3.9-wheel/*.whl wheelhouse/
490
508
ls -la wheelhouse/
491
509
sha256sum wheelhouse/*.whl
492
- - uses : actions/upload-artifact@v1
510
+ - uses : actions/upload-artifact@v2
493
511
with :
494
512
name : tensorflow-io-release
495
513
path : wheelhouse
@@ -525,7 +543,7 @@ jobs:
525
543
set -e -x
526
544
BUILD_NUMBER=$(date "+%Y%m%d%H%M%S")
527
545
echo ${BUILD_NUMBER} > BUILD_NUMBER
528
- - uses : actions/upload-artifact@v1
546
+ - uses : actions/upload-artifact@v2
529
547
with :
530
548
name : BUILD_NUMBER
531
549
path : BUILD_NUMBER
@@ -548,7 +566,7 @@ jobs:
548
566
- uses : actions/download-artifact@v1
549
567
with :
550
568
name : ${{ runner.os }}-bazel-bin
551
- path : bazel-bin/tensorflow_io
569
+ path : bazel-bin
552
570
- uses : actions/setup-python@v1
553
571
with :
554
572
python-version : ${{ matrix.python }}
@@ -557,7 +575,8 @@ jobs:
557
575
set -x -e
558
576
python -m pip install -U wheel setuptools
559
577
python --version
560
- python setup.py --data bazel-bin -q bdist_wheel --plat-name macosx_10_14_x86_64 --nightly $BUILD_NUMBER
578
+ python setup.py --project tensorflow-io --data bazel-bin -q bdist_wheel --plat-name macosx_10_14_x86_64 --nightly $BUILD_NUMBER
579
+ python setup.py --project tensorflow-io-plugin-gs --data bazel-bin -q bdist_wheel --plat-name macosx_10_14_x86_64 --nightly $BUILD_NUMBER
561
580
- name : Auditwheel ${{ matrix.python }} macOS
562
581
run : |
563
582
set -x -e
@@ -568,7 +587,7 @@ jobs:
568
587
delocate-wheel -w wheelhouse $f
569
588
done
570
589
ls wheelhouse/*
571
- - uses : actions/upload-artifact@v1
590
+ - uses : actions/upload-artifact@v2
572
591
with :
573
592
name : ${{ runner.os }}-${{ matrix.python }}-nightly
574
593
path : wheelhouse
@@ -591,12 +610,13 @@ jobs:
591
610
- uses : actions/download-artifact@v1
592
611
with :
593
612
name : ${{ runner.os }}-bazel-bin
594
- path : bazel-bin/tensorflow_io
613
+ path : bazel-bin
595
614
- name : Wheel ${{ matrix.python }} Linux
596
615
run : |
597
616
set -x -e
598
617
mv bazel-bin/tensorflow_io/.bazelrc .
599
- docker run -i --rm --user $(id -u):$(id -g) -v /etc/password:/etc/password -v $PWD:/v -w /v --net=host python:${{ matrix.python }}-slim python setup.py --data bazel-bin -q bdist_wheel --nightly $BUILD_NUMBER
618
+ docker run -i --rm --user $(id -u):$(id -g) -v /etc/password:/etc/password -v $PWD:/v -w /v --net=host python:${{ matrix.python }}-slim python setup.py --project tensorflow-io --data bazel-bin -q bdist_wheel --nightly $BUILD_NUMBER
619
+ docker run -i --rm --user $(id -u):$(id -g) -v /etc/password:/etc/password -v $PWD:/v -w /v --net=host python:${{ matrix.python }}-slim python setup.py --project tensorflow-io-plugin-gs --data bazel-bin -q bdist_wheel --nightly $BUILD_NUMBER
600
620
- name : Auditwheel ${{ matrix.python }} Linux
601
621
run : |
602
622
set -x -e
@@ -606,7 +626,7 @@ jobs:
606
626
done
607
627
sudo chown -R $(id -nu):$(id -ng) .
608
628
ls wheelhouse/*
609
- - uses : actions/upload-artifact@v1
629
+ - uses : actions/upload-artifact@v2
610
630
with :
611
631
name : ${{ runner.os }}-${{ matrix.python }}-nightly
612
632
path : wheelhouse
@@ -629,7 +649,7 @@ jobs:
629
649
- uses : actions/download-artifact@v1
630
650
with :
631
651
name : ${{ runner.os }}-bazel-bin
632
- path : bazel-bin/tensorflow_io
652
+ path : bazel-bin
633
653
- uses : actions/setup-python@v1
634
654
with :
635
655
python-version : ${{ matrix.python }}
@@ -639,9 +659,10 @@ jobs:
639
659
@echo on
640
660
python --version
641
661
python -m pip install -U wheel setuptools
642
- python setup.py --data bazel-bin -q bdist_wheel --nightly %BUILD_NUMBER%
662
+ python setup.py --project tensorflow-io --data bazel-bin -q bdist_wheel --nightly %BUILD_NUMBER%
663
+ python setup.py --project tensorflow-io-plugin-gs --data bazel-bin -q bdist_wheel --nightly %BUILD_NUMBER%
643
664
ls -la dist
644
- - uses : actions/upload-artifact@v1
665
+ - uses : actions/upload-artifact@v2
645
666
with :
646
667
name : ${{ runner.os }}-${{ matrix.python }}-nightly
647
668
path : dist
0 commit comments