Skip to content

Update node version in build workflow #42

Update node version in build workflow

Update node version in build workflow #42

Workflow file for this run

# SPDX-FileCopyrightText: 2021 Daniel Laidig <laidig@control.tu-berlin.de>
#
# SPDX-License-Identifier: MIT
name: Build
on: [push, pull_request]
jobs:
build_sdist:
name: Build sdist
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: '3.10'
- uses: actions/setup-node@v4
name: Install Node
with:
node-version: 22
- name: Run npm install
working-directory: qmt/webapps/lib-qmt
run: npm install
- name: Build webapp library
working-directory: qmt/webapps/lib-qmt
run: npm run build
- name: Build sdist
run: python setup.py sdist
- uses: actions/upload-artifact@v4
with:
path: ./dist/*.tar.gz
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
# macos-13 is an intel runner, macos-14 is apple silicon
os: [ubuntu-latest, windows-latest, macos-13, macos-14]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
name: Install Node
- name: Run npm install
working-directory: qmt/webapps/lib-qmt
run: npm install
- name: Build webapp library
working-directory: qmt/webapps/lib-qmt
run: npm run build
- name: Build wheels
uses: pypa/cibuildwheel@v2.21.3
env:
CIBW_SKIP: "pp* *-musllinux_* cp27-* cp35-* cp36-*"
CIBW_ARCHS_MACOS: "x86_64 universal2 arm64"
- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl