Skip to content

Commit

Permalink
Merge pull request #8 from Mng-dev-ai/fix-cd
Browse files Browse the repository at this point in the history
Fix CD
  • Loading branch information
Mng-dev-ai authored Nov 23, 2023
2 parents 706a11f + dbe513a commit 1acf63d
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 8 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install libssl-dev pkg-config
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
Expand All @@ -30,7 +35,7 @@ jobs:
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels-${{ matrix.python-version }}-${{ matrix.target }}
name: dist
path: dist

windows:
Expand All @@ -54,7 +59,7 @@ jobs:
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels-${{ matrix.python-version }}-${{ matrix.target }}
name: dist
path: dist

macos:
Expand All @@ -77,7 +82,7 @@ jobs:
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels-${{ matrix.python-version }}-${{ matrix.target }}
name: dist
path: dist

sdist:
Expand All @@ -92,7 +97,7 @@ jobs:
- name: Upload sdist
uses: actions/upload-artifact@v3
with:
name: wheels
name: dist
path: dist

release:
Expand All @@ -102,11 +107,12 @@ jobs:
steps:
- uses: actions/download-artifact@v3
with:
name: wheels
name: dist
path: dist
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
with:
command: upload
args: --skip-existing *
args: --skip-existing dist/*
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ci
name: CI

on:
pull_request:
Expand Down
11 changes: 11 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,14 @@ async-smtp = { version = "0.6.0", features = ["socks5"] }
tokio = { version = "1", features = ["full"] }
async-native-tls = { version = "0.4", default-features = false }
regex = "1.9"
lazy_static = "1.4"
lazy_static = "1.4"
openssl = { version = "0.10", features = ["vendored"] }

[profile.release]
codegen-units = 1
debug = false
incremental = false
lto = true
opt-level = 3
panic = "abort"
strip = true

0 comments on commit 1acf63d

Please sign in to comment.