Skip to content

CI: fix syntax

CI: fix syntax #10

Workflow file for this run

name: Build packages with Pyodide

Check failure on line 1 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / Build packages with Pyodide

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml: (Line: 14, Col: 28, Idx: 209) - (Line: 14, Col: 33, Idx: 214): While scanning a plain scalar, find unexpected ':'.
on:
push:
pull_request:
workflow_dispatch:
jobs:
run_build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
packages: [ {repo: https://github.com/Pylons/paginate, version: "0.5.6"}, {repo: https://github.com/gorakhargosh/watchdog, version: "2.3.1"} ]
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11.2
- name: Define package to build
run: |
set -vxeuo pipefail
# https://stackoverflow.com/a/3162500:
export PACKAGE_NAME="${${{ matrix.packages.repo }}##*/}"
echo PACKAGE_NAME=${PACKAGE_NAME} >> $GITHUB_ENV
- name: Set up env vars for Emscripten
run: |
set -vxeuo pipefail
pip install pyodide-build>=0.23.0
export EMSCRIPTEN_VERSION=$(pyodide config get emscripten_version)
echo EMSCRIPTEN_VERSION=${EMSCRIPTEN_VERSION} >> $GITHUB_ENV
echo "EMSCRIPTEN_VERSION is $EMSCRIPTEN_VERSION"
- name: Set up Emscripten
uses: mymindstorm/setup-emsdk@v14
with:
version: ${{ env.EMSCRIPTEN_VERSION }}
- name: Build with Pyodide
run: |
set -vxeuo pipefail
git clone --depth 1 --branch ${{ matrix.packages.version }} ${{ matrix.packages.repo }}
cd ${{ env.PACKAGE_NAME }}
pyodide build
ls -la
tree .
- name: Upload built artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ env.PACKAGE_NAME }}
path: ${{ env.PACKAGE_NAME }}/dist/${{ env.PACKAGE_NAME }}-*.whl