patch + fix docs build (#2799)

This commit is contained in:
Awni Hannun
2025-11-19 16:16:26 -08:00
committed by GitHub
parent 54f1cc6e3e
commit fdcd2923fd
2 changed files with 3 additions and 3 deletions

View File

@@ -23,7 +23,7 @@ jobs:
build_documentation:
if: github.repository == 'ml-explore/mlx'
runs-on: [self-hosted, macos]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v5
- uses: ./.github/actions/build-docs

View File

@@ -24,8 +24,8 @@ def get_version():
if "#define MLX_VERSION_PATCH" in l:
patch = l.split()[-1]
version = f"{major}.{minor}.{patch}"
pypi_release = os.environ.get("PYPI_RELEASE", False)
dev_release = os.environ.get("DEV_RELEASE", False)
pypi_release = int(os.environ.get("PYPI_RELEASE", 0))
dev_release = int(os.environ.get("DEV_RELEASE", 0))
if not pypi_release or dev_release:
today = datetime.date.today()
version = f"{version}.dev{today.year}{today.month:02d}{today.day:02d}"