@@ -36,19 +36,23 @@ jobs:
3636 # # Workaround ring 0.17 build issue
3737 # # see https://github.com/briansmith/ring/issues/1728
3838 # CFLAGS_aarch64_unknown_linux_gnu: "-D__ARM_ARCH=8"
39+ run_license_test : false
3940
4041 - target : x86_64-unknown-linux-musl
4142 runs_on : ubuntu-latest
4243 # see https://github.com/astral-sh/uv/blob/9bb55c4ac0582e05d1a7a5bbd99cc7b2c82f1847/.github/workflows/build-binaries.yml#L594
4344 manylinux : musllinux_1_1
45+ run_license_test : false
4446
4547 - target : aarch64-unknown-linux-musl
4648 runs_on : ubuntu-latest
4749 # see https://github.com/astral-sh/uv/blob/9bb55c4ac0582e05d1a7a5bbd99cc7b2c82f1847/.github/workflows/build-binaries.yml#L594
4850 manylinux : musllinux_1_1
51+ run_license_test : false
4952
5053 - target : x86_64-apple-darwin
5154 runs_on : macos-latest
55+ run_license_test : false
5256
5357 - target : aarch64-apple-darwin
5458 runs_on : macos-latest
6468 runs-on : ${{ matrix._.runs_on }}
6569 # See also https://github.com/mcrumiller/polars/.github/workflows/release-python.yml#L282
6670 steps :
71+ - name : Test LICENSE packaging
72+ if : matrix._.run_license_test != false
73+ run : |
74+ set -euo pipefail
75+
76+ mkdir -p ../python-license-test
77+ cd ../python-license-test
78+ uv init --bare --python 3.10
79+ uv add pip-licenses-cli
80+ pwd
81+ ls ../baml/engine/language_client_python/dist/
82+ uv pip install $(ls ../baml/engine/language_client_python/dist/*.whl)
83+ uv run pip-licenses | tee license-audit.log
84+
85+ # Due to `set -e`, this will fail if no matches are found
86+ grep 'baml.*Apache-2.0' license-audit.log
87+
6788 - name : Setup build environment (ARM64 Windows)
6889 if : matrix._.target == 'aarch64-pc-windows-msvc'
6990 shell :
@@ -150,22 +171,6 @@ jobs:
150171 - name : Install uv
151172 uses : astral-sh/setup-uv@v6
152173
153- - name : Test LICENSE packaging
154- run : |
155- set -euo pipefail
156-
157- mkdir -p ../python-license-test
158- cd ../python-license-test
159- uv init --bare --python 3.10
160- uv add pip-licenses-cli
161- pwd
162- ls ../baml/engine/language_client_python/dist/
163- uv pip install $(ls ../baml/engine/language_client_python/dist/*.whl)
164- uv run pip-licenses | tee license-audit.log
165-
166- # Due to `set -e`, this will fail if no matches are found
167- grep 'baml.*Apache-2.0' license-audit.log
168-
169174 - name : Upload wheels
170175 uses : actions/upload-artifact@v4
171176 with :
0 commit comments