Skip to content

Commit 113de41

Browse files
committed
🎉 Initial
0 parents  commit 113de41

File tree

6 files changed

+853
-0
lines changed

6 files changed

+853
-0
lines changed

.github/workflows/main.yml

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
---
2+
"on":
3+
push:
4+
paths-ignore:
5+
- "**.md"
6+
- docs/*
7+
pull_request:
8+
paths-ignore:
9+
- "**.md"
10+
- docs/*
11+
workflow_dispatch:
12+
13+
# https://github.com/softprops/action-gh-release/issues/236
14+
permissions:
15+
contents: write
16+
17+
env:
18+
files: dist/*
19+
python-version: 3.x
20+
cache: pip
21+
PYTHONUTF8: 1
22+
23+
jobs:
24+
# windows doesn't use cibuildwheel
25+
build-wheels:
26+
defaults:
27+
run:
28+
shell: msys2 {0}
29+
runs-on: windows-latest
30+
steps:
31+
- uses: actions/checkout@v4
32+
- uses: msys2/setup-msys2@v2
33+
with:
34+
install: gzip make
35+
pacboy: gcc uv
36+
- name: Build
37+
run: |
38+
uv build --wheel
39+
- uses: actions/upload-artifact@v4
40+
with:
41+
name: artifact-windows-latest
42+
path: |
43+
${{env.files}}
44+
45+
build-wheels-and-test:
46+
strategy:
47+
fail-fast: false
48+
matrix:
49+
runs-on:
50+
- ubuntu-latest
51+
- macos-latest
52+
runs-on: ${{matrix.runs-on}}
53+
steps:
54+
- uses: actions/checkout@v4
55+
- uses: docker/setup-qemu-action@v3
56+
if: runner.os == 'Linux'
57+
- uses: pypa/[email protected]
58+
- uses: actions/upload-artifact@v4
59+
with:
60+
name: artifact-${{matrix.runs-on}}
61+
path: |
62+
wheelhouse/*.whl
63+
64+
publish:
65+
needs:
66+
- build-wheels-and-test
67+
- build-wheels
68+
runs-on: ubuntu-latest
69+
if: startsWith(github.ref, 'refs/tags/')
70+
steps:
71+
- uses: actions/checkout@v4
72+
- uses: actions/download-artifact@v4
73+
with:
74+
pattern: artifact-*
75+
merge-multiple: true
76+
path: dist
77+
- uses: astral-sh/setup-uv@v6
78+
- name: Build
79+
run: |
80+
uv build --sdist
81+
- uses: pypa/gh-action-pypi-publish@release/v1
82+
with:
83+
password: ${{secrets.PYPI_API_TOKEN}}
84+
- uses: softprops/action-gh-release@v2
85+
with:
86+
# body_path: build/CHANGELOG.md
87+
files: |
88+
${{env.files}}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
perl5-*/
2+
*.gz
3+
dist/

0 commit comments

Comments
 (0)