Put emscripten-version file in cli directory
This lets the CLI crate build without relying on sibling directories.
This commit is contained in:
parent
b938486ebe
commit
4d64c2b939
5 changed files with 4 additions and 4 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
|
@ -36,7 +36,7 @@ jobs:
|
|||
|
||||
- name: Read Emscripten version
|
||||
run: |
|
||||
printf 'EMSCRIPTEN_VERSION=%s\n' "$(cat emscripten-version)" >> $GITHUB_ENV
|
||||
printf 'EMSCRIPTEN_VERSION=%s\n' "$(cat cli/emscripten-version)" >> $GITHUB_ENV
|
||||
|
||||
- name: Cache artifacts
|
||||
id: cache
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ fn main() {
|
|||
"RUST_BINDING_VERSION", rust_binding_version,
|
||||
);
|
||||
|
||||
let emscripten_version = fs::read_to_string("../emscripten-version").unwrap();
|
||||
let emscripten_version = fs::read_to_string("emscripten-version").unwrap();
|
||||
println!(
|
||||
"cargo:rustc-env={}={}",
|
||||
"EMSCRIPTEN_VERSION", emscripten_version,
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ web_dir=lib/binding_web
|
|||
emscripten_flags="-O3"
|
||||
minify_js=1
|
||||
force_docker=0
|
||||
emscripen_version=$(cat "$(dirname "$0")"/../emscripten-version)
|
||||
emscripen_version=$(cat "$(dirname "$0")"/../cli/emscripten-version)
|
||||
|
||||
while [[ $# > 0 ]]; do
|
||||
case "$1" in
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
set -e
|
||||
|
||||
EMSCRIPTEN_VERSION=$(cat "$(dirname "$0")/../emscripten-version")
|
||||
EMSCRIPTEN_VERSION=$(cat "$(dirname "$0")/../cli/emscripten-version")
|
||||
|
||||
mkdir -p target
|
||||
EMSDK_DIR="./target/emsdk"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue