From 66f80448e786c329fd575f7d5cff30e33578ab7f Mon Sep 17 00:00:00 2001 From: Yong Tang Date: Wed, 31 Jan 2024 11:09:27 -0800 Subject: [PATCH] Configure python version for arm64 github actions runner (#1928) --- .github/workflows/build.arm64.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.arm64.yml b/.github/workflows/build.arm64.yml index 53c139b3c..b07e0a4e7 100644 --- a/.github/workflows/build.arm64.yml +++ b/.github/workflows/build.arm64.yml @@ -41,18 +41,12 @@ jobs: with: name: ${{ runner.os }}-arm64-bazel-bin path: bazel-bin + - uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0 + with: + python-version: "${{ matrix.python }}" - name: Wheel ${{ matrix.python }} macOS run: | set -x -e - pyenv versions - pyenv install --list - # pyenv install ${{ matrix.python }} - pyenv local ${{ matrix.python }} - pyenv versions - pyenv version - pyenv which python - pyenv exec pip install -U wheel setuptools - pyenv which python python --version python setup.py --data bazel-bin -q bdist_wheel --plat-name macosx_12_0_arm64 rm -rf build