-
Notifications
You must be signed in to change notification settings - Fork 49
49 lines (42 loc) · 1.16 KB
/
build-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
name: GTSFM Wheel Builder CI
on: [pull_request, workflow_dispatch]
jobs:
test_and_build:
name: ${{ matrix.os }}_${{ matrix.venv_backend }}_py${{ matrix.python_version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
python_version:
["3.8", "3.9", "3.10"]
venv_backend:
["virtualenv"]
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4.1.5
- uses: conda-incubator/setup-miniconda@v3
with:
mamba-version: "*"
miniforge-version: latest
python-version: ${{ matrix.python_version }}
- name: Install pypa/build.
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball.
run: >-
python -m
build
--sdist
--wheel
--outdir wheelhouse/
.
- name: Archive wheels
uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.python_version }}-${{ matrix.os }}
path: ./wheelhouse