@@ -28,23 +28,34 @@ jobs:
2828 strategy :
2929 matrix :
3030 include :
31- - os : ubuntu-20 .04
31+ - os : ubuntu-22 .04
3232 OS_TYPE : " Linux"
3333 CI_PYBIN : python3
34+ OS_PYTHON_VERSION : 3.10
3435 CIBW_ENVIRONMENT : " CXX=$(which g++) OPEN_SPIEL_BUILDING_WHEEL='ON' OPEN_SPIEL_BUILD_WITH_ACPC='ON' OPEN_SPIEL_BUILD_WITH_HANABI='ON' OPEN_SPIEL_BUILD_WITH_ROSHAMBO='ON'"
35- CIBW_BUILD : cp38-manylinux_x86_64 cp39-manylinux_x86_64 cp310-manylinux_x86_64 cp311-manylinux_x86_64
36+ CIBW_BUILD : cp38-manylinux_x86_64 cp39-manylinux_x86_64 cp310-manylinux_x86_64 cp311-manylinux_x86_64 cp312-manylinux_x86_64
3637 - os : macOS-12
3738 OS_TYPE : " Darwin"
3839 CI_PYBIN : python3.9
40+ OS_PYTHON_VERSION : 3.9
3941 CIBW_ENVIRONMENT : " OPEN_SPIEL_BUILDING_WHEEL='ON' OPEN_SPIEL_BUILD_WITH_ACPC='ON' OPEN_SPIEL_BUILD_WITH_HANABI='ON' OPEN_SPIEL_BUILD_WITH_ROSHAMBO='ON'"
40- CIBW_BUILD : cp38-macosx_x86_64 cp39-macosx_x86_64 cp310-macosx_x86_64 cp311-macosx_x86_64
42+ CIBW_BUILD : cp38-macosx_x86_64 cp39-macosx_x86_64 cp310-macosx_x86_64 cp311-macosx_x86_64 cp312-macosx_x86_64
43+ # Setting to the new M1 runners to build the _arm64 wheels
44+ # https://github.blog/2023-10-02-introducing-the-new-apple-silicon-powered-m1-macos-larger-runner-for-github-actions/
45+ # TODO(author5): Set this to macos-13 once these runnings are no longer in beta
46+ - os : macos-13-xlarge
47+ OS_TYPE : " Darwin"
48+ CI_PYBIN : python3.11
49+ OS_PYTHON_VERSION : 3.11
50+ CIBW_ENVIRONMENT : " OPEN_SPIEL_BUILDING_WHEEL='ON' OPEN_SPIEL_BUILD_WITH_ACPC='ON' OPEN_SPIEL_BUILD_WITH_HANABI='ON' OPEN_SPIEL_BUILD_WITH_ROSHAMBO='ON'"
51+ CIBW_BUILD : cp39-macosx_arm64 cp310-macosx_arm64 cp311-macosx_arm64 cp312-macosx_arm64
4152 env :
4253 OPEN_SPIEL_BUILDING_WHEEL : ON
4354 OPEN_SPIEL_BUILD_WITH_ACPC : ON
4455 OPEN_SPIEL_BUILD_WITH_HANABI : ON
4556 OPEN_SPIEL_BUILD_WITH_ROSHAMBO : ON
4657 OS_TYPE : ${{ matrix.OS_TYPE }}
47- OS_PYTHON_VERSION : " 3.9 "
58+ OS_PYTHON_VERSION : ${{ matrix.OS_PYTHON_VERSION }}
4859 CI_PYBIN : ${{ matrix.CI_PYBIN }}
4960 CIBW_MANYLINUX_X86_64_IMAGE : manylinux2014
5061 CIBW_BUILD : ${{ matrix.CIBW_BUILD }}
@@ -72,15 +83,16 @@ jobs:
7283 # These are necessary to install what is necessary for the build and for the full tests below.
7384 ${CI_PYBIN} -m pip install --upgrade pip
7485 ${CI_PYBIN} -m pip --version
86+ [[ "${OS_TYPE}" = "Darwin" ]] && ${CI_PYBIN} -m pip install pipx
7587 ${CI_PYBIN} -m pip install --upgrade setuptools
7688 ${CI_PYBIN} -m pip install --upgrade -r requirements.txt -q
77- source ./open_spiel/scripts/python_extra_deps.sh
89+ source ./open_spiel/scripts/python_extra_deps.sh ${CI_PYBIN}
7890 ${CI_PYBIN} -m pip install --no-cache-dir --upgrade $OPEN_SPIEL_PYTHON_JAX_DEPS
7991 ${CI_PYBIN} -m pip install --no-cache-dir --upgrade $OPEN_SPIEL_PYTHON_PYTORCH_DEPS
8092 ${CI_PYBIN} -m pip install --no-cache-dir --upgrade $OPEN_SPIEL_PYTHON_TENSORFLOW_DEPS
8193 ${CI_PYBIN} -m pip install --no-cache-dir --upgrade $OPEN_SPIEL_PYTHON_MISC_DEPS
8294 ${CI_PYBIN} -m pip install twine
83- ${CI_PYBIN} -m pip install cibuildwheel==2.11.1
95+ ${CI_PYBIN} -m pip install cibuildwheel==2.16.2
8496 - name : Build sdist
8597 run : |
8698 pipx run build --sdist
90102 # Basic tests are run via the CIBW_TEST_COMMAND environment variable.
91103 - name : Build bdist_wheel and run tests
92104 run : |
105+ [[ "${OS_TYPE}" = "Darwin" ]] && xcodebuild -version
93106 ${CI_PYBIN} -m cibuildwheel --output-dir wheelhouse
94107 ls -l wheelhouse
95108
0 commit comments