99 pull_request :
1010
1111jobs :
12- build_and_test :
12+ build-and-test-cpu :
1313 runs-on : ubuntu-24.04
14- strategy :
15- matrix :
16- python-version : ["3.10"]
17-
1814 steps :
1915 - uses : actions/checkout@v4
2016
21- - name : Set up Python ${{ matrix.python-version }}
17+ - name : Set up Python 3.10
2218 uses : actions/setup-python@v5
2319 with :
24- python-version : ${{ matrix.python-version }}
20+ python-version : ' 3.10 '
2521 cache : ' pip'
2622
2723 - name : Display Python version
@@ -42,26 +38,26 @@ jobs:
4238 uses : actions/cache@v4
4339 with :
4440 path : " /home/runner/.cache/bazel"
45- key : bazel-${{ matrix.python-version }} -${{ github.ref_name }}-${{ github.sha }}
41+ key : bazel-py3.10 -${{ github.ref_name }}-${{ github.sha }}
4642 restore-keys : |
47- bazel-${{ matrix.python-version }} -${{ github.ref_name }}
48- bazel-${{ matrix.python-version }} -
43+ bazel-py3.10 -${{ github.ref_name }}
44+ bazel-py3.10 -
4945 bazel-
5046
5147 - if : github.event_name == 'pull_request'
5248 name : Mount bazel cache (pull-request)
5349 uses : actions/cache/restore@v4
5450 with :
5551 path : " /home/runner/.cache/bazel"
56- key : bazel-${{ matrix.python-version }} -${{ github.base_ref }}-${{ github.event.pull_request.base.sha }}
52+ key : bazel-py3.10 -${{ github.base_ref }}-${{ github.event.pull_request.base.sha }}
5753 restore-keys : |
58- bazel-${{ matrix.python-version }} -${{ github.base_ref }}
59- bazel-${{ matrix.python-version }} -
54+ bazel-py3.10 -${{ github.base_ref }}
55+ bazel-py3.10 -
6056 bazel-
6157
6258 - name : Build all targets
6359 run : |
64- export HERMETIC_PYTHON_VERSION=${{ matrix.python-version }}
60+ export HERMETIC_PYTHON_VERSION=3.10
6561 bazel build //...
6662
6763 - name : Build pip wheel
0 commit comments