Skip to content

Commit 731f7ed

Browse files
authored
Merge pull request amitdev#38 from AndreMiras/feature/wheels-build
👷 Wheels build, refs amitdev#23
2 parents ffd2808 + 875cfbd commit 731f7ed

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build and deploy
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build_wheels:
7+
name: Build wheels on ${{ matrix.os }}
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
os: [ubuntu-20.04, windows-2019, macOS-10.15]
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
# Used to host cibuildwheel
16+
- uses: actions/setup-python@v3
17+
- name: Install cibuildwheel
18+
run: python -m pip install cibuildwheel==2.7.0
19+
- name: Build wheels
20+
run: python -m cibuildwheel --output-dir wheelhouse
21+
- uses: actions/upload-artifact@v3
22+
with:
23+
path: ./wheelhouse/*.whl
24+
25+
build_sdist:
26+
name: Build source distribution
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v3
30+
- name: Build sdist
31+
run: pipx run build --sdist
32+
- uses: actions/upload-artifact@v3
33+
with:
34+
path: dist/*.tar.gz

README.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
.. image:: https://github.com/amitdev/lru-dict/actions/workflows/tests.yml/badge.svg
55
:target: https://github.com/amitdev/lru-dict/actions/workflows/tests.yml
66

7+
.. image:: https://github.com/amitdev/lru-dict/actions/workflows/build-and-deploy.yml/badge.svg
8+
:target: https://github.com/amitdev/lru-dict/actions/workflows/build-and-deploy.yml
9+
710
LRU Dict
811
========
912

0 commit comments

Comments
 (0)