-
Notifications
You must be signed in to change notification settings - Fork 5
90 lines (73 loc) · 2.64 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: Build MDANSE
on: [push, pull_request]
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, windows-2019, macOS-11]
python-version: ["3.9", "3.10", "3.11"]
# os: [ubuntu-20.04, windows-2019, macOS-11, ubuntu-latest, windows-latest, macOS-latest]
if: |
!contains( github.ref, 'legacy' )
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install build packages
run: python -m pip install build wheel setuptools
- name: Install dependencies
run: (cd MDANSE && python -m pip install -r requirements.txt)
- name: Build wheels
run: (cd MDANSE && python -m build)
# to supply options, put them in 'env', like:
# env:
# CIBW_SOME_OPTION: value
- uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}_python${{ matrix.python-version }}_wheel
path: ./MDANSE/dist/*.whl
retention-days: 30
build_gui_wheels:
name: Build GUI wheels on ${{ matrix.os }}
needs: [build_wheels]
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, windows-2019, macOS-11]
python-version: ["3.11"]
# os: [ubuntu-20.04, windows-2019, macOS-11, ubuntu-latest, windows-latest, macOS-latest]
if: |
!contains( github.ref, 'legacy' )
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- uses: actions/download-artifact@v3
with:
name: ${{ matrix.os }}_python${{ matrix.python-version }}_wheel
- name: Install build packages
run: python -m pip install build wheel setuptools
- name: Install MDANSE
if: runner.os == 'Linux' || runner.os == 'macOS'
run: python -m pip install *.whl
- name: Install MDANSE on Windows
if: runner.os == 'Windows'
run: foreach ($file in Get-ChildItem *.whl) {python -m pip install $file}
- name: Install dependencies
run: (cd MDANSE_GUI && python -m pip install -r requirements.txt)
- name: Build wheels
run: (cd MDANSE_GUI && python -m build)
# to supply options, put them in 'env', like:
# env:
# CIBW_SOME_OPTION: value
- uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}_GUI_wheel
path: ./MDANSE_GUI/dist/*.whl
retention-days: 30