Skip to content

Commit

Permalink
Build gcs file system only on arm64 macOS until plumbing is in place (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
yongtang authored Jan 23, 2024
1 parent 18dbb64 commit d10cf25
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build.arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0
- name: Bazel on macOS
run: |
set -x -e
bash -e .github/workflows/build.bazel.sh python3
- uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0
with:
name: ${{ runner.os }}-arm64-bazel-bin
path: |
build/tensorflow_io
build/tensorflow_io_gcs_filesystem
- run: |
set -x -e
echo "Successfully completely macOS arm64 release"
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/build.bazel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ bazel build \
${BAZEL_OPTIMIZATION} \
-- //tensorflow_io:python/ops/libtensorflow_io.so //tensorflow_io:python/ops/libtensorflow_io_plugins.so //tensorflow_io_gcs_filesystem/...

elif [[ $(uname -m) == "arm64" && $(uname) == "Darwin" ]]; then

bazel build \
${BAZEL_OPTIMIZATION} \
-- //tensorflow_io_gcs_filesystem/... # //tensorflow_io/... # Try with filesystem only during testing

else

bazel build \
Expand Down

0 comments on commit d10cf25

Please sign in to comment.