From a6d10c52152edba87246dcd4ea6a39edc8ed403d Mon Sep 17 00:00:00 2001 From: Miles Johnson Date: Sat, 4 Nov 2023 14:33:52 -0700 Subject: [PATCH] Disable cache. --- .github/workflows/ci.yml | 1 + scripts/cleanTarget.mjs | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 scripts/cleanTarget.mjs diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 408cc87..4eec685 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,6 +45,7 @@ jobs: - uses: moonrepo/setup-rust@v1 with: bins: cargo-wasi, cargo-nextest + cache: false - uses: moonrepo/setup-toolchain@v0 - run: df if: ${{ always() && runner.os == 'Linux' }} diff --git a/scripts/cleanTarget.mjs b/scripts/cleanTarget.mjs new file mode 100644 index 0000000..6502e36 --- /dev/null +++ b/scripts/cleanTarget.mjs @@ -0,0 +1,13 @@ +import fs from "fs"; + +const file = process.argv[1]; + +// Copy built file +fs.mkdirSync("temp-target"); +fs.copyFileSync( + `target/wasm32-wasi/debug/${file}.wasm`, + `temp-target/${file}.wasm` +); + +// Delete target folder +fs.rmdirSync("target", { recursive: true });