fix build.yml, concurrency concerns, build.rs concerns

This commit is contained in:
l1npengtul
2022-11-04 15:36:18 +09:00
parent 80fef5a01c
commit 36edc445d1
6 changed files with 98 additions and 165 deletions

View File

@@ -17,10 +17,10 @@ fn main() {
let seed = env::var("RHAI_AHASH_SEED").map_or_else(|_| "None".into(), |s| format!("Some({s})"));
contents = contents.replace("{{ AHASH_SEED }}", &seed);
contents = contents.replace("{{AHASH_SEED}}", &seed);
File::create("src/config/hashing.rs")
File::create("src/config/hashing_env.rs")
.expect("cannot create `config.rs`")
.write_all(contents.as_bytes())
.expect("cannot write to `config/hashing.rs`");
.expect("cannot write to `config/hashing_env.rs`");
}