Skip to content

Try again with pyinit #89

Try again with pyinit

Try again with pyinit #89

Workflow file for this run

name: deploy
on:
push:
branches:
- "*"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Clone OpenTimelineIO
uses: actions/checkout@v4
with:
repository: JeanChristopheMorinPerso/OpenTimelineIO
ref: switch_to_scikit_build_core
path: OpenTimelineIO
submodules: 'recursive'
- uses: actions/setup-python@v4
with:
python-version: '3.12'
# - run: git apply < ../patch.patch
# working-directory: OpenTimelineIO
- uses: pypa/[email protected]
with:
package-dir: OpenTimelineIO
output-dir: dist
env:
CIBW_PLATFORM: pyodide
CIBW_BUILD_FRONTEND: 'build; args: --exports=pyinit'
CIBW_ENVIRONMENT: SKBUILD_CMAKE_BUILD_TYPE=RelWithDebInfo LDFLAGS="-fwasm-exceptions $LDFLAGS -sSIDE_MODULE=2" CXXFLAGS="-fwasm-exceptions $CXXFLAGS -sSIDE_MODULE=2"
# - run: |
# pip install pyodide-build==0.22.1
# echo EMSCRIPTEN_VERSION=$(pyodide config get emscripten_version) >> $GITHUB_ENV
# - uses: mymindstorm/setup-emsdk@v12
# with:
# version: ${{ env.EMSCRIPTEN_VERSION }}
# - run: pyodide build --exports pyinit
# working-directory: OpenTimelineIO
# env:
# VERBOSE: '1'
# OTIO_CXX_BUILD_TYPE: RelWithDebInfo
- uses: actions/upload-artifact@v4
name: Upload wheel artifact
with:
name: wheel
path: dist/*.whl
- name: Generate HTML
run: |
set -ex
python -m pip install packaging jinja2
python generateHtml.py dist/*.whl pages
cp dist/*.whl pages/
find public -mindepth 1 -not -name "*.in" -exec cp -v {} pages/ \;
- name: Upload pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: pages
deploy:
needs: ['build']
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4