Skip to content

Commit 42ee164

Browse files
authored
Merge pull request #2076 from Hywan/fix-publish-script
fix(scripts) Fix publish script regarding `wasmer-c-api`
2 parents 1d4a2b1 + 30095e1 commit 42ee164

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/c-api/build.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ fn main() {
7575

7676
/// Check whether we should build the C API headers or set `inline-c` up.
7777
fn running_self() -> bool {
78-
env::var("DOCS_RS").is_err() && env::var("_CBINDGEN_IS_RUNNING").is_err()
78+
env::var("DOCS_RS").is_err()
79+
&& env::var("_CBINDGEN_IS_RUNNING").is_err()
80+
&& env::var("WASMER_PUBLISH_SCRIPT_IS_RUNNING").is_err()
7981
}
8082

8183
/// Build the header files for the `wasm_c_api` API.

scripts/publish.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def publish_crate(crate: str):
102102

103103
global no_dry_run
104104
if no_dry_run:
105-
output = subprocess.run(["cargo", "publish"])
105+
output = subprocess.run(["cargo", "publish"], env={'WASMER_PUBLISH_SCRIPT_IS_RUNNING': '1'})
106106
else:
107107
print("In dry-run: not publishing crate `{}`".format(crate))
108108

0 commit comments

Comments
 (0)