CI: add building workflow #1
Workflow file for this run
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: Build | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
run_build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11.2 | |
- run: | | |
set -vxeuo pipefail | |
pip install pyodide-build>=0.23.0 | |
echo EMSCRIPTEN_VERSION=$(pyodide config get emscripten_version) >> $GITHUB_ENV | |
echo "EMSCRIPTEN_VERSION is $EMSCRIPTEN_VERSION" | |
- uses: mymindstorm/setup-emsdk@v12 | |
with: | |
version: ${{ env.EMSCRIPTEN_VERSION }} | |
- run: | | |
set -vxeuo pipefail | |
git clone https://github.com/Pylons/paginate | |
cd paginate/ | |
pyodide build | |
ls -la |