build_pyodide - use prebuilt pyodide build env

This commit is contained in:
Andrej730
2025-10-22 12:01:31 +05:00
parent 5b4c54abd2
commit c27a995480
3 changed files with 34 additions and 27 deletions
+2 -14
View File
@@ -14,15 +14,6 @@ jobs:
submodules: recursive
path: IfcOpenShell
- name: Checkout Pyodide
uses: actions/checkout@v3
with:
submodules: recursive
repository: pyodide/pyodide
ref: '0.28.0a3'
token: ${{ secrets.BUILD_REPO_TOKEN }}
path: pyodide
- name: Checkout Build Repository
uses: actions/checkout@v3
with:
@@ -39,12 +30,9 @@ jobs:
- name: Build
run: |
VERSION=`cat IfcOpenShell/VERSION`
sed -i s/0.8.0/$VERSION/g IfcOpenShell/pyodide/meta.yaml
sed -i s/--tty// pyodide/run_docker
pyodide/run_docker IfcOpenShell/pyodide/build_pyodide.sh
./IfcOpenShell/pyodide/build_pyodide.sh
FILE=`echo dist/ifcopenshell-*.whl`
NEW_FILE=`echo $FILE | sed "s/$VERSION/$VERSION+${GITHUB_SHA:0:7}/"`
NEW_FILE=`echo $FILE | sed "s/-/+${GITHUB_SHA:0:7}-/2"`
mv $FILE $NEW_FILE
- name: Upload Build Logs