-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 979 Bytes
/
main.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
name: Build Wheels
on:
push:
branches: [main]
tags: ["v*", "dev*", "try*"]
env:
PYTHONIOENCODING: utf-8
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PyPI }}
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Cargo check
run: cargo check --verbose
- name: Cargo test
run: cargo test --verbose
- name: setup python
uses: actions/setup-python@v4
with:
python-version: '3.9'
architecture: 'x64'
- name: Update pip
run: python -m pip install --upgrade pip setuptools wheel
- name: Install dependencies
run: python -m pip install invoke twine maturin
- name: Build python wheels
run: python -m invoke build-wheels --release --strip
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
run: python -m invoke upload-wheels