Skip to content

Commit ad152fc

Browse files
whhonecopybara-github
authored andcommitted
test new nightly
LiteRT-LM-PiperOrigin-RevId: 890579357
1 parent 13a3c6b commit ad152fc

File tree

5 files changed

+34
-22
lines changed

5 files changed

+34
-22
lines changed

.github/workflows/nightly-linux-arm64.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: "Nightly-Linux-Arm64"
22

33
on:
44
workflow_dispatch:
5+
pull_request:
6+
branches:
7+
- main
58
schedule:
69
- cron: '0 21 * * *'
710
timezone: 'America/Los_Angeles'
@@ -14,6 +17,9 @@ jobs:
1417
matrix:
1518
python-version: ["3.10", "3.11", "3.12", "3.13"]
1619
steps:
20+
# - name: Install required packages
21+
# run: sudo apt-get update && sudo apt-get install -y git-lfs patchelf
22+
1723
- name: Checkout code.
1824
uses: actions/checkout@v4
1925
with:
@@ -22,7 +28,7 @@ jobs:
2228
- name: Build Python Wheel
2329
run: |
2430
PYTHON_VERSION=${{ matrix.python-version }}
25-
DATE=$(date +'%Y%m%d')
31+
DATE=$(TZ=America/Los_Angeles date +'%Y%m%d2')
2632
bazel build \
2733
--repo_env=HERMETIC_PYTHON_VERSION=${PYTHON_VERSION} \
2834
--@rules_python//python/config_settings:python_version=${PYTHON_VERSION} \
@@ -31,7 +37,7 @@ jobs:
3137
--define=litert_link_capi_so=true \
3238
--define=resolve_symbols_in_exec=false \
3339
--config=linux_arm64 \
34-
-c opt //python/litert_lm:litert_lm_wheel
40+
-c opt //python/litert_lm:wheel
3541
3642
- name: Install uv
3743
uses: astral-sh/setup-uv@v5

.github/workflows/nightly-linux-x64.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: "Nightly-Linux-x64"
22

33
on:
44
workflow_dispatch:
5+
pull_request:
6+
branches:
7+
- main
58
schedule:
69
- cron: '0 21 * * *'
710
timezone: 'America/Los_Angeles'
@@ -25,7 +28,7 @@ jobs:
2528
# is used to maintain compatibility with Google Colab environments.
2629
run: |
2730
PYTHON_VERSION=${{ matrix.python-version }}
28-
DATE=$(date +'%Y%m%d')
31+
DATE=$(TZ=America/Los_Angeles date +'%Y%m%d2')
2932
bazel build \
3033
--repo_env=HERMETIC_PYTHON_VERSION=${PYTHON_VERSION} \
3134
--@rules_python//python/config_settings:python_version=${PYTHON_VERSION} \
@@ -34,7 +37,7 @@ jobs:
3437
--define=litert_link_capi_so=true \
3538
--define=resolve_symbols_in_exec=false \
3639
--define=xnn_enable_avxvnniint8=false \
37-
-c opt //python/litert_lm:litert_lm_wheel
40+
-c opt //python/litert_lm:wheel
3841
3942
- name: Install uv
4043
uses: astral-sh/setup-uv@v5
@@ -63,12 +66,12 @@ jobs:
6366
- name: Build CLI Python Wheel
6467
if: matrix.python-version == '3.13'
6568
run: |
66-
DATE=$(date +'%Y%m%d')
69+
DATE=$(TZ=America/Los_Angeles date +'%Y%m%d2')
6770
bazel build \
6871
--define=PYPI_NIGHTLY=1 \
6972
--define=PYPI_NIGHTLY_DATE=${DATE} \
7073
--define=xnn_enable_avxvnniint8=false \
71-
-c opt //python/litert_lm_cli:litert_lm_cli_wheel
74+
-c opt //python/litert_lm_cli:wheel
7275
7376
- name: Test CLI Python Wheel
7477
if: matrix.python-version == '3.13'

.github/workflows/nightly-mac-arm64.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: "Nightly-Mac-Arm64"
22

33
on:
44
workflow_dispatch:
5+
pull_request:
6+
branches:
7+
- main
58
schedule:
69
- cron: '0 21 * * *'
710
timezone: 'America/Los_Angeles'
@@ -22,13 +25,13 @@ jobs:
2225
- name: Build Python Wheel
2326
run: |
2427
PYTHON_VERSION=${{ matrix.python-version }}
25-
DATE=$(date +'%Y%m%d')
28+
DATE=$(TZ=America/Los_Angeles date +'%Y%m%d2')
2629
bazel build --config=macos_arm64 \
2730
--repo_env=HERMETIC_PYTHON_VERSION=${PYTHON_VERSION} \
2831
--@rules_python//python/config_settings:python_version=${PYTHON_VERSION} \
2932
--define=PYPI_NIGHTLY=1 \
3033
--define=PYPI_NIGHTLY_DATE=${DATE} \
31-
-c opt //python/litert_lm:litert_lm_wheel
34+
-c opt //python/litert_lm:wheel
3235
3336
- name: Install uv
3437
uses: astral-sh/setup-uv@v5

python/litert_lm/BUILD

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ genrule(
192192
)
193193

194194
py_package(
195-
name = "litert_lm_pkg",
195+
name = "package",
196196
# Explicitly specify packages to avoid including transitively linked shared
197197
# libraries (like duplicate .so files in _solib_*/...) in the wheel.
198198
packages = ["python.litert_lm"],
@@ -204,7 +204,7 @@ py_package(
204204
# $ bazel build \
205205
# --repo_env=HERMETIC_PYTHON_VERSION=${PYTHON_VERSION} \
206206
# --@rules_python//python/config_settings:python_version=${PYTHON_VERSION} \
207-
# -c opt //python/litert_lm:litert_lm_wheel
207+
# -c opt //python/litert_lm:wheel
208208
#
209209
# To build nightly wheel:
210210
# $ PYTHON_VERSION=3.10
@@ -214,9 +214,9 @@ py_package(
214214
# --@rules_python//python/config_settings:python_version=${PYTHON_VERSION} \
215215
# --define=PYPI_NIGHTLY=1 \
216216
# --define=PYPI_NIGHTLY_DATE=${DATE} \
217-
# -c opt //python/litert_lm:litert_lm_wheel
217+
# -c opt //python/litert_lm:wheel
218218
py_wheel(
219-
name = "litert_lm_wheel",
219+
name = "wheel",
220220
abi = select({
221221
"@rules_python//python/config_settings:is_python_3.10": "cp310",
222222
"@rules_python//python/config_settings:is_python_3.11": "cp311",
@@ -225,8 +225,8 @@ py_wheel(
225225
"//conditions:default": "none",
226226
}),
227227
distribution = select({
228-
":is_nightly": "litert-lm-nightly",
229-
"//conditions:default": "litert-lm",
228+
":is_nightly": "litert-lm-api-nightly",
229+
"//conditions:default": "litert-lm-api",
230230
}),
231231
platform = select({
232232
"//build_config:linux_x86_64": "manylinux_2_35_x86_64",
@@ -262,5 +262,5 @@ py_wheel(
262262
":is_nightly": VERSION + ".dev$(PYPI_NIGHTLY_DATE)",
263263
"//conditions:default": VERSION,
264264
}),
265-
deps = [":litert_lm_pkg"],
265+
deps = [":package"],
266266
)

python/litert_lm_cli/BUILD

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,17 @@ config_setting(
7373
)
7474

7575
py_package(
76-
name = "litert_lm_cli_pkg",
76+
name = "package",
7777
packages = ["python.litert_lm_cli"],
7878
deps = [":litert-lm"],
7979
)
8080

8181
py_wheel(
82-
name = "litert_lm_cli_wheel",
82+
name = "wheel",
8383
abi = "none",
8484
distribution = select({
85-
":is_nightly": "litert-lm-cli-nightly",
86-
"//conditions:default": "litert-lm-cli",
85+
":is_nightly": "litert-lm-nightly",
86+
"//conditions:default": "litert-lm",
8787
}),
8888
platform = "any",
8989
python_tag = "py3",
@@ -110,10 +110,10 @@ py_wheel(
110110
],
111111
},
112112
requires = select({
113-
":is_nightly": ["litert-lm-nightly"],
114-
"//conditions:default": ["litert-lm"],
113+
":is_nightly": ["litert-lm-api-nightly"],
114+
"//conditions:default": ["litert-lm-api"],
115115
}) + [
116116
"fire",
117117
],
118-
deps = [":litert_lm_cli_pkg"],
118+
deps = [":package"],
119119
)

0 commit comments

Comments
 (0)