mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-05 23:41:44 +00:00
build_pyodide: use uv
This commit is contained in:
@@ -8,6 +8,13 @@ jobs:
|
|||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Set up uv
|
||||||
|
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
|
||||||
|
|
||||||
|
- name: Install Python
|
||||||
|
# Installs latest Python version so it's preferred by uv over system Python.
|
||||||
|
run: uv python install
|
||||||
|
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v7
|
uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
@@ -26,7 +33,7 @@ jobs:
|
|||||||
- name: Unpack Dependencies
|
- name: Unpack Dependencies
|
||||||
run: |
|
run: |
|
||||||
cd ifcopenshell_build
|
cd ifcopenshell_build
|
||||||
python ../IfcOpenShell/nix/cache_dependencies.py unpack
|
uv run ../IfcOpenShell/nix/cache_dependencies.py unpack
|
||||||
|
|
||||||
- name: ccache
|
- name: ccache
|
||||||
uses: hendrikmuhs/ccache-action@v1.2.23
|
uses: hendrikmuhs/ccache-action@v1.2.23
|
||||||
@@ -42,13 +49,13 @@ jobs:
|
|||||||
|
|
||||||
- name: Order wheel shared objects
|
- name: Order wheel shared objects
|
||||||
run: |
|
run: |
|
||||||
python ./IfcOpenShell/pyodide/order_pyodide_wheel_shared_objects.py dist/ifcopenshell-*.whl
|
uv run ./IfcOpenShell/pyodide/order_pyodide_wheel_shared_objects.py dist/ifcopenshell-*.whl
|
||||||
|
|
||||||
- name: Split packages
|
- name: Split packages
|
||||||
run: |
|
run: |
|
||||||
VERSION=v`cat ./IfcOpenShell/VERSION`
|
VERSION=v`cat ./IfcOpenShell/VERSION`
|
||||||
mkdir -p dist-modular
|
mkdir -p dist-modular
|
||||||
python ./IfcOpenShell/pyodide/split_pyodide_ifcopenshell_wheel.py dist/ifcopenshell-*.whl ./dist-modular
|
uv run ./IfcOpenShell/pyodide/split_pyodide_ifcopenshell_wheel.py dist/ifcopenshell-*.whl ./dist-modular
|
||||||
cd dist-modular
|
cd dist-modular
|
||||||
zip -r -qq ifcopenshell-modular-${VERSION}-${GITHUB_SHA:0:7}-pyodide.zip *.whl
|
zip -r -qq ifcopenshell-modular-${VERSION}-${GITHUB_SHA:0:7}-pyodide.zip *.whl
|
||||||
|
|
||||||
@@ -77,7 +84,7 @@ jobs:
|
|||||||
- name: Pack Dependencies
|
- name: Pack Dependencies
|
||||||
run: |
|
run: |
|
||||||
cd ifcopenshell_build
|
cd ifcopenshell_build
|
||||||
python ../IfcOpenShell/nix/cache_dependencies.py pack
|
uv run ../IfcOpenShell/nix/cache_dependencies.py pack
|
||||||
|
|
||||||
- name: Commit and Push Changes to Build Repository
|
- name: Commit and Push Changes to Build Repository
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
# /// script
|
||||||
|
# ///
|
||||||
# This file was generated with the assistance of an AI coding tool.
|
# This file was generated with the assistance of an AI coding tool.
|
||||||
"""Order Pyodide wheel shared objects so wasm side modules load safely."""
|
"""Order Pyodide wheel shared objects so wasm side modules load safely."""
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
# /// script
|
||||||
|
# ///
|
||||||
"""Split optional IfcOpenShell Pyodide payloads into separate wheels."""
|
"""Split optional IfcOpenShell Pyodide payloads into separate wheels."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|||||||
Reference in New Issue
Block a user