Skip to content

Commit

Permalink
feat: sync python
Browse files Browse the repository at this point in the history
  • Loading branch information
rise0chen committed Dec 7, 2023
1 parent ba3c061 commit 5b040b4
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 36 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,19 @@ jobs:
fail-fast: false
runs-on: ubuntu-latest
steps:
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions/download-artifact@v3
- name: Release
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
uses: PyO3/maturin-action@v1
with:
container: off
command: upload
args: --skip-existing */*.whl
- name: Zip Artifact
run: for dir in `ls`; do zip -r ${dir}.zip ${dir}; done
- name: Release
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/python_asyncio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ jobs:
uses: actions/checkout@v3
with:
submodules: true
- name: Rename
uses: colathro/[email protected]
with:
file: "Cargo.toml"
key: "package.name"
value: "lebai_sdk_asyncio"
- name: Build
uses: PyO3/maturin-action@v1
with:
Expand Down Expand Up @@ -77,6 +83,12 @@ jobs:
uses: actions/checkout@v3
with:
submodules: true
- name: Rename
uses: colathro/[email protected]
with:
file: "Cargo.toml"
key: "package.name"
value: "lebai_sdk_asyncio"
- name: Build
uses: PyO3/maturin-action@v1
with:
Expand Down Expand Up @@ -112,6 +124,12 @@ jobs:
uses: actions/checkout@v3
with:
submodules: true
- name: Rename
uses: colathro/[email protected]
with:
file: "Cargo.toml"
key: "package.name"
value: "lebai_sdk_asyncio"
- name: Build
uses: PyO3/maturin-action@v1
with:
Expand Down
74 changes: 38 additions & 36 deletions Cargo.lock

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

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,8 @@ jsonrpsee-wasm-client = {version = "0.20"}
jsonrpsee-ws-client = {version = "0.20", default-features = false}
tokio = {version = "1", features = ["full"]}

errno = {version = "=0.3.7", default-features = false}
rustix = {version = "=0.38.25", default-features = false}

[patch.crates-io]
cmod = {git = "https://github.com/rise0chen/cmod.git"}

0 comments on commit 5b040b4

Please sign in to comment.