diff --git a/.github/workflows/build.arm64.yml b/.github/workflows/build.arm64.yml index b6ec4fd51..fa19e131e 100644 --- a/.github/workflows/build.arm64.yml +++ b/.github/workflows/build.arm64.yml @@ -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" diff --git a/.github/workflows/build.bazel.sh b/.github/workflows/build.bazel.sh index 0b72dcce1..0f8c490eb 100755 --- a/.github/workflows/build.bazel.sh +++ b/.github/workflows/build.bazel.sh @@ -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 \