From 5d38c3ad70749e43b5dfe0b7c4575e1b762b6087 Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Fri, 12 Feb 2021 18:11:49 +0900 Subject: [PATCH] Fix file name --- .circleci/config.yml | 7 ++++--- script/generate_artifact.sh | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 24bd390f..4b2c40d4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,6 +22,7 @@ executors: FEATURES: <<#parameters.postgres>>postgres<><<^parameters.postgres>>sqlite<> DATABASE_URL: <<#parameters.postgres>>postgres://postgres@localhost/plume<><<^parameters.postgres>>plume.sqlite<> ROCKET_SECRET_KEY: VN5xV1DN7XdpATadOCYcuGeR/dV0hHfgx9mx9TarLdM= + RUSTFLAGS: --cfg=web_sys_unstable_apis commands: @@ -72,7 +73,7 @@ commands: type: string steps: - run: | - export RUSTFLAGS="-Zprofile -Zfewer-names -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Clink-arg=-Xlinker -Clink-arg=--no-keep-memory -Clink-arg=-Xlinker -Clink-arg=--reduce-memory-overheads" + export RUSTFLAGS="-Zprofile -Zfewer-names -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Clink-arg=-Xlinker -Clink-arg=--no-keep-memory -Clink-arg=-Xlinker -Clink-arg=--reduce-memory-overheads $RUSTFLAGS" export CARGO_INCREMENTAL=0 << parameters.cmd >> @@ -168,7 +169,7 @@ jobs: steps: - restore_env: cache: <<#parameters.postgres>>postgres<><<^parameters.postgres>>sqlite<> - - run: RUSTFLAGS="--cfg=web_sys_unstable_apis" wasm-pack build --target web --release plume-front + - run: wasm-pack build --target web --release plume-front - run_with_coverage: cmd: | cmd="cargo install --debug --no-default-features --features="${FEATURES}",test --force --path . -j" @@ -203,7 +204,7 @@ jobs: steps: - restore_env: cache: release-<<#parameters.postgres>>postgres<><<^parameters.postgres>>sqlite<> - - run: RUSTFLAGS="--cfg=web_sys_unstable_apis" wasm-pack build --target web --release plume-front + - run: wasm-pack build --target web --release plume-front - build: package: plume release: true diff --git a/script/generate_artifact.sh b/script/generate_artifact.sh index d39a11d3..84734981 100755 --- a/script/generate_artifact.sh +++ b/script/generate_artifact.sh @@ -3,4 +3,4 @@ mkdir bin cp target/release/{plume,plm} bin strip -s bin/* tar -cvzf plume.tar.gz bin/ static/ -tar -cvzf wasm.tar.gz static/plume_front.{js,wasm} +tar -cvzf wasm.tar.gz static/plume_front{.js,_bg.wasm}