Skip to content

Commit 0a2b563

Browse files
authored
Merge pull request #3 from Mng-dev-ai/Fix-CD
Fix CD
2 parents 6981bf3 + b9f38ea commit 0a2b563

File tree

4 files changed

+12
-45
lines changed

4 files changed

+12
-45
lines changed

.github/workflows/CD.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,70 +13,71 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16+
python-version: ["3.7", "3.8", "3.9", "3.10"]
1617
target: [x86_64, x86, aarch64, armv7, s390x, ppc64le]
1718
steps:
1819
- uses: actions/checkout@v3
1920
- uses: actions/setup-python@v4
2021
with:
21-
python-version: '3.10'
22-
- name: Install dependencies
23-
run: sudo apt-get update && sudo apt-get install -y build-essential
22+
python-version: ${{ matrix.python-version }}
2423
- name: Build wheels
2524
uses: PyO3/maturin-action@v1
2625
with:
2726
target: ${{ matrix.target }}
2827
args: --release --out dist --find-interpreter
29-
sccache: 'true'
28+
sccache: "true"
3029
manylinux: auto
3130
- name: Upload wheels
3231
uses: actions/upload-artifact@v3
3332
with:
34-
name: wheels
33+
name: wheels-${{ matrix.python-version }}-${{ matrix.target }}
3534
path: dist
3635

3736
windows:
3837
runs-on: windows-latest
3938
strategy:
4039
matrix:
40+
python-version: ["3.7", "3.8", "3.9", "3.10"]
4141
target: [x64, x86]
4242
steps:
4343
- uses: actions/checkout@v3
4444
- uses: actions/setup-python@v4
4545
with:
46-
python-version: '3.10'
46+
python-version: ${{ matrix.python-version }}
4747
architecture: ${{ matrix.target }}
4848
- name: Build wheels
4949
uses: PyO3/maturin-action@v1
5050
with:
5151
target: ${{ matrix.target }}
5252
args: --release --out dist --find-interpreter
53-
sccache: 'true'
53+
sccache: "true"
5454
- name: Upload wheels
5555
uses: actions/upload-artifact@v3
5656
with:
57-
name: wheels
57+
name: wheels-${{ matrix.python-version }}-${{ matrix.target }}
5858
path: dist
5959

6060
macos:
6161
runs-on: macos-latest
6262
strategy:
6363
matrix:
64+
python-version: ["3.7", "3.8", "3.9", "3.10"]
6465
target: [x86_64, aarch64]
6566
steps:
6667
- uses: actions/checkout@v3
6768
- uses: actions/setup-python@v4
6869
with:
69-
python-version: '3.10'
70+
python-version: "3.10"
7071
- name: Build wheels
7172
uses: PyO3/maturin-action@v1
7273
with:
7374
target: ${{ matrix.target }}
7475
args: --release --out dist --find-interpreter
75-
sccache: 'true'
76+
sccache: "true"
7677
- name: Upload wheels
7778
uses: actions/upload-artifact@v3
7879
with:
79-
name: wheels
80+
name: wheels-${{ matrix.python-version }}-${{ matrix.target }}
8081
path: dist
8182

8283
sdist:
@@ -97,7 +98,6 @@ jobs:
9798
release:
9899
name: Release
99100
runs-on: ubuntu-latest
100-
if: "startsWith(github.ref, 'refs/tags/')"
101101
needs: [linux, windows, macos, sdist]
102102
steps:
103103
- uses: actions/download-artifact@v3

Cargo.lock

Lines changed: 0 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ crate-type = ["cdylib"]
99

1010
[dependencies]
1111
pyo3 = "0.20.0"
12-
mimalloc = { version = "0.1.34"}
1312
speedate = "0.13.0"
1413
rust_decimal = "1.32.0"
1514

src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#[global_allocator]
2-
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
3-
41
#[macro_use]
52
mod macros;
63

0 commit comments

Comments
 (0)