install ninja #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: main | |
on: | |
push: | |
pull_request: | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
build: | |
strategy: | |
matrix: | |
include: | |
- pyodide: 0.27.3 | |
python: 3.12 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: install pyodide build | |
run: pip install pyodide-build==${{ matrix.pyodide }} | |
- name: Get emscripten version | |
run: | | |
# import here will download the pyodide xbuild env which outputs a line to | |
# stdout, hence the tail -1 | |
python -c 'from pyodide_build.build_env import emscripten_version;print(f"EMVERSION={emscripten_version()}")' | tail -1 >> $GITHUB_ENV | |
- name: Install emsdk ${{env.EMVERSION}} | |
uses: mymindstorm/setup-emsdk@v14 | |
with: | |
version: ${{env.EMVERSION}} | |
actions-cache-folder: 'emsdk-cache' | |
- name: Arrow build | |
run: | | |
mkdir dist | |
apt-get install ninja-build | |
pyodide build-recipes-no-deps --recipe-dir . --target-install-dir dist pyarrow | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: build_wheel | |
path: dist | |