From 5fa668ad97dd45a466fef9e5b2a92021e1f9bfa9 Mon Sep 17 00:00:00 2001 From: realaravinth Date: Wed, 7 Jul 2021 18:10:01 +0530 Subject: [PATCH] updated cache buster --- .github/workflows/clippy-fmt.yml | 11 +++++++++++ .github/workflows/coverage.yml | 3 +++ Cargo.lock | 10 +++++----- build.rs | 4 ++-- 4 files changed, 21 insertions(+), 7 deletions(-) diff --git a/.github/workflows/clippy-fmt.yml b/.github/workflows/clippy-fmt.yml index 76977a9e..8a8c8ca4 100644 --- a/.github/workflows/clippy-fmt.yml +++ b/.github/workflows/clippy-fmt.yml @@ -35,6 +35,17 @@ jobs: toolchain: stable components: clippy override: true + + - uses: actions/setup-node@v2 + with: + node-version: '14.x' + + - name: Install wasm-pack + run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh + + - name: Build frontend + run: make frontend + - name: Check with Clippy uses: actions-rs/clippy-check@v1 with: diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index b11761ed..ccfabb84 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -72,6 +72,9 @@ jobs: profile: minimal override: true + - name: Install wasm-pack + run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh + - name: Build frontend run: make frontend diff --git a/Cargo.lock b/Cargo.lock index 2e650a69..9fe03d82 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -579,7 +579,7 @@ dependencies = [ [[package]] name = "cache-buster" version = "0.2.0" -source = "git+https://github.com/realaravinth/cache-buster#e75ac689d2155092b90d1421ec05ec84c6917350" +source = "git+https://github.com/realaravinth/cache-buster#3cf8828ab80b72037d23f5ce12b5879e44534da3" dependencies = [ "data-encoding", "derive_builder", @@ -3009,9 +3009,9 @@ checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" [[package]] name = "tokio" -version = "1.8.0" +version = "1.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "570c2eb13b3ab38208130eccd41be92520388791207fde783bda7c1e8ace28d4" +checksum = "98c8b05dc14c75ea83d63dd391100353789f5f24b8b3866542a5e85c8be8e985" dependencies = [ "autocfg", "bytes", @@ -3049,9 +3049,9 @@ dependencies = [ [[package]] name = "tokio-stream" -version = "0.1.6" +version = "0.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8864d706fdb3cc0843a49647ac892720dac98a6eeb818b77190592cf4994066" +checksum = "7b2f3f698253f03119ac0102beaa64f67a67e08074d03a22d18784104543727f" dependencies = [ "futures-core", "pin-project-lite", diff --git a/build.rs b/build.rs index 7e23b3cb..de202120 100644 --- a/build.rs +++ b/build.rs @@ -15,7 +15,7 @@ * along with this program. If not, see . */ -use cache_buster::BusterBuilder; +use cache_buster::{BusterBuilder, NoHashCategory}; use std::process::Command; fn main() { @@ -48,7 +48,7 @@ fn cache_bust() { // mime::TEXT_CSS, // ]; - let no_hash = vec!["bundle/f3c927fe82899094538e.module.wasm"]; + let no_hash = vec![NoHashCategory::FileExtentions(vec!["wasm"])]; let config = BusterBuilder::default() .source("./static/cache")