Skip to content

Bugfix to action yaml #26

Bugfix to action yaml

Bugfix to action yaml #26

Workflow file for this run

name: Build wheel files
on: [push, pull_request]
jobs:
build_ubuntu_wheels:
name: Build wheels on ${{ matrix.os }} for Python ${{ matrix.pyversions }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest] #, windows-latest, macos-13, macos-14]
pyversions: ['3.11', '3.10', '3.9', '3.8', '3.7',]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.pyversions }}
- name: Install pip dependencies
run: |
python -m pip install --upgrade pip
python -m pip install forthon mppl numpy h5py
python -m pip install flake8
python -m pip install pytest-isolate pytest-xdist
pip install 'build<0.10.0'
- name: Build wheels
run: python -m build
# - uses: actions/upload-artifact@v4
# with:
# name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}-py${{ matrix.pyversions }}
# path: dist/*.whl
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-${{ matrix.pyversions }}
path: dist/*.whl
build_macosx_wheels:
name: Build wheels on ${{ matrix.os }} for Python ${{ matrix.pyversions }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-13] #, macos-14]
pyversions: ['3.11'] #, '3.10', '3.9', '3.8', '3.7',]
steps:
- uses: actions/checkout@v4
- name: "Determine prerequisites"
id: prereq
run: |
echo "need_node=$(command -v node >/dev/null 2>&1 && echo 0 || echo 1)" >> $GITHUB_OUTPUT
# Consider switching to https://github.com/actions/setup-node when it works
# https://github.com/nektos/act/issues/973
- name: Install node
if: ${{ steps.prereq.outputs.need_node == '1' }}
run: |
if [ "${RUNNER_OS,,}" = "windows" ]
then
choco install nodejs -y
echo "C:\Program Files\nodejs" >> $GITHUB_PATH
else
curl -sS https://webi.sh/node | sh
echo ~/.local/opt/node/bin >> $GITHUB_PATH
fi
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.pyversions }}
- name: Install pip dependencies
run: |
python -m pip install --upgrade pip
python -m pip install forthon mppl numpy h5py
python -m pip install flake8
python -m pip install pytest-isolate pytest-xdist
pip install 'build<0.10.0'
- name: Print gcc version
run: gcc --version
- name: Install gfortran
run: xcode-select --install
- name: Print gfortran version
run: gfortran --version
- name: Build wheels
run: python -m build
- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}-py${{ matrix.pyversions }}
path: dist/*.whl
gather_wheels:
needs: build_ubuntu_wheels
name: Gathers built wheels
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
merge-multiple: true