Skip to content

Commit 1acf63d

Browse files
authored
Merge pull request #8 from Mng-dev-ai/fix-cd
Fix CD
2 parents 706a11f + dbe513a commit 1acf63d

File tree

4 files changed

+35
-8
lines changed

4 files changed

+35
-8
lines changed

.github/workflows/CD.yml

+12-6
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ jobs:
2020
- uses: actions/setup-python@v4
2121
with:
2222
python-version: ${{ matrix.python-version }}
23+
- name: Install dependencies
24+
run: |
25+
sudo apt-get update
26+
sudo apt-get install libssl-dev pkg-config
27+
2328
- name: Build wheels
2429
uses: PyO3/maturin-action@v1
2530
with:
@@ -30,7 +35,7 @@ jobs:
3035
- name: Upload wheels
3136
uses: actions/upload-artifact@v3
3237
with:
33-
name: wheels-${{ matrix.python-version }}-${{ matrix.target }}
38+
name: dist
3439
path: dist
3540

3641
windows:
@@ -54,7 +59,7 @@ jobs:
5459
- name: Upload wheels
5560
uses: actions/upload-artifact@v3
5661
with:
57-
name: wheels-${{ matrix.python-version }}-${{ matrix.target }}
62+
name: dist
5863
path: dist
5964

6065
macos:
@@ -77,7 +82,7 @@ jobs:
7782
- name: Upload wheels
7883
uses: actions/upload-artifact@v3
7984
with:
80-
name: wheels-${{ matrix.python-version }}-${{ matrix.target }}
85+
name: dist
8186
path: dist
8287

8388
sdist:
@@ -92,7 +97,7 @@ jobs:
9297
- name: Upload sdist
9398
uses: actions/upload-artifact@v3
9499
with:
95-
name: wheels
100+
name: dist
96101
path: dist
97102

98103
release:
@@ -102,11 +107,12 @@ jobs:
102107
steps:
103108
- uses: actions/download-artifact@v3
104109
with:
105-
name: wheels
110+
name: dist
111+
path: dist
106112
- name: Publish to PyPI
107113
uses: PyO3/maturin-action@v1
108114
env:
109115
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
110116
with:
111117
command: upload
112-
args: --skip-existing *
118+
args: --skip-existing dist/*

.github/workflows/CI.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: ci
1+
name: CI
22

33
on:
44
pull_request:

Cargo.lock

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+11-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,14 @@ async-smtp = { version = "0.6.0", features = ["socks5"] }
2020
tokio = { version = "1", features = ["full"] }
2121
async-native-tls = { version = "0.4", default-features = false }
2222
regex = "1.9"
23-
lazy_static = "1.4"
23+
lazy_static = "1.4"
24+
openssl = { version = "0.10", features = ["vendored"] }
25+
26+
[profile.release]
27+
codegen-units = 1
28+
debug = false
29+
incremental = false
30+
lto = true
31+
opt-level = 3
32+
panic = "abort"
33+
strip = true

0 commit comments

Comments
 (0)