Skip to content

Commit dc7149d

Browse files
authored
Merge pull request #176 from gerardcl/feature/refactor-to-full-rust-backend
preparing project structure for new complete Rust based backend
2 parents b1d4488 + e801fe1 commit dc7149d

26 files changed

Lines changed: 2790 additions & 930 deletions

.github/dependabot.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/CICD.yml

Lines changed: 172 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,172 @@
1+
# This file is autogenerated by maturin v1.3.2
2+
# To update, run
3+
#
4+
# maturin generate-ci github
5+
#
6+
name: CICD
7+
8+
on:
9+
push:
10+
branches:
11+
- 'main'
12+
tags:
13+
- '*'
14+
pull_request:
15+
branches: [ master ]
16+
workflow_dispatch:
17+
18+
permissions:
19+
contents: read
20+
21+
jobs:
22+
23+
test:
24+
name: Tests
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v3
28+
- uses: actions-rs/toolchain@v1
29+
with:
30+
profile: minimal
31+
toolchain: stable
32+
override: true
33+
- uses: actions-rs/cargo@v1
34+
with:
35+
command: test
36+
37+
fmt:
38+
name: Rustfmt
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: actions/checkout@v3
42+
- uses: actions-rs/toolchain@v1
43+
with:
44+
profile: minimal
45+
toolchain: stable
46+
override: true
47+
- run: rustup component add rustfmt
48+
- uses: actions-rs/cargo@v1
49+
with:
50+
command: fmt
51+
args: --all -- --check
52+
53+
clippy:
54+
name: Build Clippy
55+
runs-on: ubuntu-latest
56+
strategy:
57+
matrix:
58+
rust:
59+
- stable
60+
- 1.72.0
61+
steps:
62+
- uses: actions/checkout@v3
63+
- uses: actions-rs/toolchain@v1
64+
with:
65+
profile: minimal
66+
toolchain: ${{ matrix.rust }}
67+
override: true
68+
- run: rustup component add clippy
69+
- uses: actions-rs/cargo@v1
70+
with:
71+
command: clippy
72+
args: -- -D warnings
73+
74+
linux:
75+
runs-on: ubuntu-latest
76+
strategy:
77+
matrix:
78+
target: [x86_64, x86, armv7, s390x, ppc64le]
79+
steps:
80+
- uses: actions/checkout@v3
81+
- uses: actions/setup-python@v4
82+
with:
83+
python-version: '3.10'
84+
- name: Build wheels
85+
uses: PyO3/maturin-action@v1
86+
with:
87+
target: ${{ matrix.target }}
88+
args: --release --out dist --find-interpreter
89+
sccache: 'true'
90+
manylinux: auto
91+
- name: Upload wheels
92+
uses: actions/upload-artifact@v3
93+
with:
94+
name: wheels
95+
path: dist
96+
97+
windows:
98+
runs-on: windows-latest
99+
strategy:
100+
matrix:
101+
target: [x64, x86]
102+
steps:
103+
- uses: actions/checkout@v3
104+
- uses: actions/setup-python@v4
105+
with:
106+
python-version: '3.10'
107+
architecture: ${{ matrix.target }}
108+
- name: Build wheels
109+
uses: PyO3/maturin-action@v1
110+
with:
111+
target: ${{ matrix.target }}
112+
args: --release --out dist --find-interpreter
113+
sccache: 'true'
114+
- name: Upload wheels
115+
uses: actions/upload-artifact@v3
116+
with:
117+
name: wheels
118+
path: dist
119+
120+
macos:
121+
runs-on: macos-latest
122+
strategy:
123+
matrix:
124+
target: [x86_64, aarch64]
125+
steps:
126+
- uses: actions/checkout@v3
127+
- uses: actions/setup-python@v4
128+
with:
129+
python-version: '3.10'
130+
- name: Build wheels
131+
uses: PyO3/maturin-action@v1
132+
with:
133+
target: ${{ matrix.target }}
134+
args: --release --out dist --find-interpreter
135+
sccache: 'true'
136+
- name: Upload wheels
137+
uses: actions/upload-artifact@v3
138+
with:
139+
name: wheels
140+
path: dist
141+
142+
sdist:
143+
runs-on: ubuntu-latest
144+
steps:
145+
- uses: actions/checkout@v3
146+
- name: Build sdist
147+
uses: PyO3/maturin-action@v1
148+
with:
149+
command: sdist
150+
args: --out dist
151+
- name: Upload sdist
152+
uses: actions/upload-artifact@v3
153+
with:
154+
name: wheels
155+
path: dist
156+
157+
release:
158+
name: Release
159+
runs-on: ubuntu-latest
160+
if: "startsWith(github.ref, 'refs/tags/')"
161+
needs: [linux, windows, macos, sdist]
162+
steps:
163+
- uses: actions/download-artifact@v3
164+
with:
165+
name: wheels
166+
- name: Publish to PyPI
167+
uses: PyO3/maturin-action@v1
168+
env:
169+
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
170+
with:
171+
command: upload
172+
args: --non-interactive --skip-existing *

.github/workflows/codeql-analysis.yml

Lines changed: 0 additions & 71 deletions
This file was deleted.

.github/workflows/python-package.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

.github/workflows/python-publish.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)