-
Notifications
You must be signed in to change notification settings - Fork 21
67 lines (55 loc) · 1.83 KB
/
wheels.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Build wheel files
on: [push, pull_request]
jobs:
build_ubuntu_wheels:
name: Build wheels on ${{ matrix.os }} for Python ${{ matrix.pyversions }}
if: ${{ matrix.os }} == 'macos-14'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-13, macos-12, 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: Find path to M1 gfortran
run: which gfortran
- name: Symlink gfortran for macOS
if: runner.os == 'macOS'
run: |
# make sure gfortran is available
ln -s /usr/local/bin/gfortran-13 /usr/local/bin/gfortran
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
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-${{ 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:
path: wheels
merge-multiple: true
- uses: actions/upload-artifact@v4
with:
name: all_wheels
path: wheels