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 });