mirror of
https://github.com/fluencelabs/aquavm
synced 2024-12-04 15:20:16 +00:00
Mark some crates as publish = false + add CI to publish crates (#105)
This commit is contained in:
parent
3a75162869
commit
ccba158d81
49
.github/workflows/publish_crates.yml
vendored
Normal file
49
.github/workflows/publish_crates.yml
vendored
Normal file
@ -0,0 +1,49 @@
|
||||
name: "publish-crates"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "master"
|
||||
|
||||
jobs:
|
||||
cargo-publish:
|
||||
name: "Publish crates"
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
### Prepare cargo & toolchains
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
~/.cargo/bin
|
||||
target
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
- name: Install Rust toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: nightly
|
||||
profile: minimal
|
||||
override: true
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
toolchain: nightly
|
||||
command: update
|
||||
args: --aggressive
|
||||
|
||||
- name: Install cargo-workspaces
|
||||
run: cargo install cargo-workspaces || true
|
||||
|
||||
### === Rust package release ===
|
||||
- name: Login to crates.io
|
||||
run: cargo login ${{ secrets.CRATES_IO_TOKEN }}
|
||||
|
||||
- name: Publish to crates.io
|
||||
run: cargo ws publish --no-git-commit --from-git --skip-published --yes
|
10
.github/workflows/publish_interpreter_dev.yml
vendored
10
.github/workflows/publish_interpreter_dev.yml
vendored
@ -155,8 +155,14 @@ jobs:
|
||||
- name: Set interpreter version to ${{ env.FINAL_VERSION }} before the build
|
||||
run: |
|
||||
PATH="~/.cargo/bin:$PATH"
|
||||
toml set Cargo.toml package.version "${{ env.FINAL_VERSION }}" | sponge Cargo.toml
|
||||
working-directory: air
|
||||
(
|
||||
cd air-interpreter
|
||||
toml set Cargo.toml package.version "${{ env.FINAL_VERSION }}" | sponge Cargo.toml
|
||||
)
|
||||
(
|
||||
cd air
|
||||
toml set Cargo.toml package.version "${{ env.FINAL_VERSION }}" | sponge Cargo.toml
|
||||
)
|
||||
|
||||
- name: Build air_interpreter_server.wasm for node
|
||||
run: marine build -p air-interpreter --release --features marine
|
||||
|
24
Cargo.lock
generated
24
Cargo.lock
generated
@ -50,7 +50,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "air-interpreter-interface"
|
||||
version = "0.5.0"
|
||||
version = "0.5.1"
|
||||
dependencies = [
|
||||
"fluence",
|
||||
"fluence-it-types",
|
||||
@ -655,9 +655,9 @@ checksum = "37ab347416e802de484e4d03c7316c48f1ecb56574dfd4a46a80f173ce1de04d"
|
||||
|
||||
[[package]]
|
||||
name = "fluence"
|
||||
version = "0.6.5"
|
||||
version = "0.6.8"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "bd1f159a4da6aef89e8e4a0bf061a8031d669d03d9928266942581a52df03f56"
|
||||
checksum = "a92116bbed3be3afee952d62d6009f1a365bde985a1cf59fb933144308660743"
|
||||
dependencies = [
|
||||
"fluence-sdk-main",
|
||||
"marine-macro",
|
||||
@ -720,9 +720,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "fluence-sdk-main"
|
||||
version = "0.6.4"
|
||||
version = "0.6.8"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b3a5d1ca20ada064379d959a9a82f9c006e4d9388533cf06010186fef6dd583b"
|
||||
checksum = "fcbf30472768d331ea6a6853bdf1fc6166ba697d46a9ce74c3ccf5764a58414a"
|
||||
dependencies = [
|
||||
"log",
|
||||
"marine-macro",
|
||||
@ -1143,18 +1143,18 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marine-macro"
|
||||
version = "0.6.4"
|
||||
version = "0.6.8"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1c1652b6ac1bbdde9a66c16c8a2f9cd34d005a1f1b211a538c5b28764faa6ef4"
|
||||
checksum = "b9107f5956f578d4815a17c963836cffadf481801ae453e0247693e87f1de734"
|
||||
dependencies = [
|
||||
"marine-macro-impl",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "marine-macro-impl"
|
||||
version = "0.6.4"
|
||||
version = "0.6.8"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "80fee75eaf1a97ee9fe2d382c0537c06a79e5d7ab9d81bda6cb263fb8fd1a15a"
|
||||
checksum = "7244dd6e5d624bb9d1e63777c3bbc3a8c857973d2b7633aa8d0b612d7770a55d"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
@ -1211,9 +1211,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marine-timestamp-macro"
|
||||
version = "0.6.2"
|
||||
version = "0.6.8"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "f6feb612ccd3fd39ec3d50c9a1a96885e1fd32d36a92cf674a0fbe6f7c452613"
|
||||
checksum = "ecb3037577a262360b7e2f0fb5470b7ad0aabcefcb8d2421a4871a854d0a37b2"
|
||||
dependencies = [
|
||||
"chrono",
|
||||
"quote",
|
||||
@ -1474,7 +1474,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "polyplets"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
dependencies = [
|
||||
"fluence",
|
||||
"serde",
|
||||
|
@ -3,6 +3,7 @@ name = "air-interpreter"
|
||||
version = "0.9.0"
|
||||
authors = ["Fluence Labs"]
|
||||
edition = "2018"
|
||||
publish = false
|
||||
|
||||
[lib]
|
||||
name = "air_interpreter_client"
|
||||
@ -16,7 +17,7 @@ path = "src/marine.rs"
|
||||
[dependencies]
|
||||
air = { path = "../air" }
|
||||
|
||||
fluence = { version = "0.6.5", features = ["logger"] }
|
||||
fluence = { version = "0.6.8", features = ["logger"] }
|
||||
|
||||
# Keep 0.2.65 until this is resolved https://github.com/rustwasm/wasm-pack/issues/886
|
||||
wasm-bindgen = "=0.2.65"
|
||||
|
@ -3,6 +3,7 @@ name = "air"
|
||||
version = "0.9.0"
|
||||
authors = ["Fluence Labs"]
|
||||
edition = "2018"
|
||||
publish = false
|
||||
|
||||
[lib]
|
||||
name = "air"
|
||||
@ -11,9 +12,9 @@ doctest = false
|
||||
|
||||
[dependencies]
|
||||
air-parser = { path = "../crates/air-parser" }
|
||||
fluence = { version = "0.6.5", features = ["logger"] }
|
||||
polyplets = { path = "../crates/polyplets" }
|
||||
air-interpreter-interface = { path = "../crates/interpreter-interface" }
|
||||
fluence = { version = "0.6.8", features = ["logger"] }
|
||||
|
||||
serde = { version = "=1.0.118", features = [ "derive", "rc" ] }
|
||||
serde_json = "=1.0.61"
|
||||
|
@ -12,7 +12,7 @@ path = "src/lib.rs"
|
||||
|
||||
[dependencies]
|
||||
fluence-faas = "0.7.0"
|
||||
air-interpreter-interface = { version = "0.5.0", path = "../../crates/interpreter-interface" }
|
||||
air-interpreter-interface = { version = "0.5.1", path = "../../crates/interpreter-interface" }
|
||||
|
||||
thiserror = "1.0.24"
|
||||
maplit = "1.0.2"
|
||||
|
@ -4,6 +4,7 @@ version = "0.7.0"
|
||||
authors = ["Fluence Labs"]
|
||||
edition = "2018"
|
||||
license = "Apache-2.0"
|
||||
publish = false
|
||||
|
||||
[build-dependencies]
|
||||
lalrpop = "0.19.5"
|
||||
|
@ -1,17 +1,21 @@
|
||||
[package]
|
||||
name = "air-interpreter-interface"
|
||||
description = "Interface of the AIR interpreter"
|
||||
version = "0.5.0"
|
||||
version = "0.5.1"
|
||||
authors = ["Fluence Labs"]
|
||||
edition = "2018"
|
||||
license = "Apache-2.0"
|
||||
documentation = "https://docs.rs/air-interpreter-interface"
|
||||
repository = "https://github.com/fluencelabs/air"
|
||||
keywords = ["fluence", "air", "webassembly", "programming-language"]
|
||||
categories = ["wasm"]
|
||||
|
||||
[lib]
|
||||
name = "air_interpreter_interface"
|
||||
path = "src/lib.rs"
|
||||
|
||||
[dependencies]
|
||||
fluence = "0.6.5"
|
||||
fluence = "0.6.8"
|
||||
fluence-it-types = "0.3.0"
|
||||
|
||||
serde = "=1.0.118"
|
||||
|
@ -1,15 +1,20 @@
|
||||
[package]
|
||||
name = "polyplets"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
authors = ["Fluence Labs"]
|
||||
edition = "2018"
|
||||
license = "Apache-2.0"
|
||||
description = "Security primitives to verify origin of service calls in Fluence network"
|
||||
documentation = "https://docs.rs/polyplets"
|
||||
repository = "https://github.com/fluencelabs/crates/polyplets"
|
||||
keywords = ["fluence", "air", "webassembly", "security", "authorization"]
|
||||
categories = ["authentication"]
|
||||
|
||||
[lib]
|
||||
name = "polyplets"
|
||||
path = "src/lib.rs"
|
||||
|
||||
[dependencies]
|
||||
fluence = { version = "0.6.5", features = ["logger"] }
|
||||
fluence = { version = "0.6.8", features = ["logger"] }
|
||||
serde = { version = "=1.0.118", features = ["rc", "derive"] }
|
||||
|
||||
|
@ -4,10 +4,11 @@ version = "0.1.0"
|
||||
authors = ["Fluence Labs"]
|
||||
edition = "2018"
|
||||
license = "Apache-2.0"
|
||||
publish = false
|
||||
|
||||
[[bin]]
|
||||
name = "air_test_module"
|
||||
path = "src/main.rs"
|
||||
|
||||
[dependencies]
|
||||
fluence = { version = "0.6.5", features = ["logger"] }
|
||||
fluence = { version = "0.6.8", features = ["logger"] }
|
||||
|
@ -4,6 +4,7 @@ version = "0.2.0"
|
||||
authors = ["Fluence Labs"]
|
||||
edition = "2018"
|
||||
license = "Apache-2.0"
|
||||
publish = false
|
||||
|
||||
[lib]
|
||||
name = "air_test_utils"
|
||||
|
Loading…
Reference in New Issue
Block a user