Skip to content

Commit a5acb75

Browse files
committed
Print bazel info and version; ignore bazel build files
1 parent ba2971f commit a5acb75

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

.github/workflows/wheels.yml

+14-4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
release:
77
types: [published]
88

9+
env:
10+
USE_BAZEL_VERSION: "7.2.1"
11+
912
jobs:
1013
build_sdist:
1114
name: Build sdist
@@ -45,7 +48,8 @@ jobs:
4548
fail-fast: false
4649
matrix:
4750
os: [ubuntu]
48-
python-version: ['cp39', 'cp310']
51+
python-version: ['cp310']
52+
# python-version: ['cp39', 'cp310']
4953

5054
runs-on: ${{ format('{0}-latest', matrix.os) }}
5155
steps:
@@ -67,14 +71,20 @@ jobs:
6771
# Avoid downloading Bazel every time.
6872
bazelisk-cache: true
6973
# Store build cache per workflow.
70-
disk-cache: ${{ github.workflow }}
74+
disk-cache: ${{ github.workflow }}-${{ hashFiles('.github/workflows/wheels.yml') }}
7175
# Share repository cache between workflows.
7276
repository-cache: true
7377

78+
- name: Verify bazel installation
79+
run: |
80+
which bazel
81+
bazel info
82+
bazel version
83+
7484
- name: Build wheels
7585
run: |
76-
package_build/initialize.sh &&
77-
python package_build/tfx/setup.py bdist_wheel &&
86+
package_build/initialize.sh
87+
python package_build/tfx/setup.py bdist_wheel
7888
python package_build/ml-pipelines-sdk/setup.py bdist_wheel
7989
mv dist/*.whl wheelhouse/
8090

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,6 @@ bazel-*
141141
**/*_pb2.py
142142
**/*_pb2_grpc.py
143143
# LINT.ThenChange(.dockerignore)
144+
145+
MODULE.bazel
146+
MODULE.bazel.lock

0 commit comments

Comments
 (0)