Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
100 changes: 100 additions & 0 deletions .github/workflows/marin-libs-wheels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
name: marin-libs - Build Wheels

on:
workflow_dispatch:
inputs:
mode:
description: "Build mode"
type: choice
options: [nightly, manual]
default: manual
schedule:
- cron: "0 6 * * *" # 06:00 UTC daily
push:
tags:
- "marin-libs-v*"
pull_request:
paths:
- "lib/**"
- "scripts/python_libs_package.py"
- ".github/workflows/marin-libs-wheels.yaml"

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: false # don't kill an in-flight nightly mid-publish

permissions:
contents: write # creating GH releases
pull-requests: read

jobs:
resolve:
runs-on: ubuntu-latest
outputs:
mode: ${{ steps.pick.outputs.mode }}
version: ${{ steps.pick.outputs.version }}
steps:
- id: pick
run: |
set -euo pipefail
if [[ "${GITHUB_EVENT_NAME}" == "push" && "${GITHUB_REF}" == refs/tags/marin-libs-v* ]]; then
echo "mode=stable" >> "$GITHUB_OUTPUT"
echo "version=${GITHUB_REF_NAME#marin-libs-v}" >> "$GITHUB_OUTPUT"
elif [[ "${GITHUB_EVENT_NAME}" == "schedule" ]]; then
echo "mode=nightly" >> "$GITHUB_OUTPUT"
echo "version=" >> "$GITHUB_OUTPUT"
elif [[ "${GITHUB_EVENT_NAME}" == "workflow_dispatch" ]]; then
echo "mode=${{ github.event.inputs.mode }}" >> "$GITHUB_OUTPUT"
echo "version=" >> "$GITHUB_OUTPUT"
else
# pull_request: build-only smoke test
echo "mode=manual" >> "$GITHUB_OUTPUT"
echo "version=" >> "$GITHUB_OUTPUT"
fi

build:
needs: resolve
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # for git rev-parse in manual mode
- uses: astral-sh/setup-uv@v7

- name: Build wheels
run: |
uv run python scripts/python_libs_package.py \
--mode "${{ needs.resolve.outputs.mode }}" \
${{ needs.resolve.outputs.version && format('--version {0}', needs.resolve.outputs.version) || '' }} \
--skip-publish

- uses: actions/upload-artifact@v4
with:
name: marin-libs-wheels
# BUILD_INFO.json travels with the wheels so the publish job uses
# the same resolved version the build job stamped in, instead of
# re-computing it (which would drift across midnight UTC).
path: |
dist/*.whl
dist/BUILD_INFO.json
retention-days: 14

publish:
needs: [resolve, build]
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v7
- uses: actions/download-artifact@v4
with:
name: marin-libs-wheels
path: dist
- name: Publish releases and prune nightlies
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
uv run python scripts/python_libs_package.py \
--mode "${{ needs.resolve.outputs.mode }}" \
${{ needs.resolve.outputs.version && format('--version {0}', needs.resolve.outputs.version) || '' }} \
--publish-only
2 changes: 1 addition & 1 deletion lib/fray/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "marin-fray"
version = "0.1.0"
version = "0.99"
requires-python = ">=3.11,<3.13"
dependencies = [
"click>=8.0",
Expand Down
2 changes: 1 addition & 1 deletion lib/haliax/src/haliax/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
#
# SPDX-License-Identifier: Apache-2.0

__version__ = "1.4"
__version__ = "0.99"
2 changes: 1 addition & 1 deletion lib/iris/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "marin-iris"
version = "0.1.0"
version = "0.99"
requires-python = ">=3.11,<3.13"
dependencies = [
"marin-rigging",
Expand Down
4 changes: 2 additions & 2 deletions lib/levanter/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module-name = "levanter"

[project]
name = "marin-levanter"
version = "1.2"
version = "0.99"
description = "Scalable Training for Foundation Models with Named Tensors and JAX"
readme = "README.md"
requires-python = ">=3.11"
Expand All @@ -34,7 +34,7 @@ classifiers = [
]

dependencies = [
"marin-haliax>=1.4.dev450",
"marin-haliax",
"equinox>=0.11.7,!=0.12.0",
"jax>=0.8.0",
"marin-fray",
Expand Down
2 changes: 1 addition & 1 deletion lib/marin/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ requires-python = ">=3.11,<3.13"

[project]
name = "marin"
version = "0.1.0"
version = "0.99"

requires-python = ">=3.11"
dependencies = [
Expand Down
2 changes: 1 addition & 1 deletion lib/rigging/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "marin-rigging"
version = "0.1.0"
version = "0.99"
requires-python = ">=3.11,<3.13"
dependencies = [
"fsspec>=2024.0.0",
Expand Down
2 changes: 1 addition & 1 deletion lib/zephyr/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "marin-zephyr"
version = "0.1.0"
version = "0.99"
description = "Lightweight dataset library for distributed data processing"
readme = "README.md"
requires-python = ">=3.11,<3.13"
Expand Down
Loading
Loading