mirror of
https://github.com/extism/extism.git
synced 2026-01-10 06:18:00 -05:00
- Removes the `ExtismContext` type from runtime and all SDKs - Removed SDK functions: `extism_context_new`, `extism_context_reset`, `extism_context_free` - All SDKs have been updated, but there are still some TODOs below - Removes `extism_plugin_update` - Plugins can no longer be updated - a new plugin should be created instead - Adds `extism_plugin_id` to uniquely identify plugins - Merges the `extism-runtime` and `extism` crates (there is no longer an `extism-runtime` crate) - Makes `extism::Manifest` an alias for `extism_manifest::Manifest` instead of a distinct type - Adds `MemoryHandle` type to SDKs to refer to blocks of Extism memory that can be accessed in host functions - Improves thread-safety of Plugins, adds C++ test to call a single plugin from multiple threads. - Expands wasmtime bounds to include 12.0
38 lines
974 B
YAML
38 lines
974 B
YAML
on:
|
|
workflow_dispatch:
|
|
|
|
name: Release Rust SDK
|
|
|
|
jobs:
|
|
release-sdks:
|
|
name: release-rust
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Setup Rust env
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
profile: minimal
|
|
override: true
|
|
target: ${{ matrix.target }}
|
|
|
|
- name: Release Rust Manifest Crate
|
|
env:
|
|
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_API_TOKEN }}
|
|
run: |
|
|
# order of crate publication matter: manifest, runtime, rust
|
|
cargo publish --manifest-path manifest/Cargo.toml
|
|
# allow for crates.io to update so dependant crates can locate extism-manifest
|
|
sleep 10
|
|
|
|
- name: Release Runtime
|
|
env:
|
|
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_API_TOKEN }}
|
|
run: |
|
|
cargo publish --manifest-path runtime/Cargo.toml --no-verify
|
|
|
|
|