* Add files:flip-to-nightly:windows * Add fetch:wasm:windows script * Add install:tools:windows * Update install:tools:windows * Remove wasm-pack and improve README instruction * yarn.lock * Update to Powershell 7, fixes left and right * Contd clean up * install:wasm-pack fix and cleanup * Fix vercel (hopefully) * Attempt 2 for Vercel * Attempt 3 for Vercel * A snapshot a day keeps the bugs away! 📷🐛 (OS: namespace-profile-ubuntu-8-cores) * Attempt 5 * A snapshot a day keeps the bugs away! 📷🐛 (OS: namespace-profile-ubuntu-8-cores) * A snapshot a day keeps the bugs away! 📷🐛 (OS: namespace-profile-ubuntu-8-cores) * Another fix * Try with install:wasm-pack:cargo * Decouple wasm-pack install and build:wasm * A snapshot a day keeps the bugs away! 📷🐛 (OS: namespace-profile-ubuntu-8-cores) * A snapshot a day keeps the bugs away! 📷🐛 (OS: namespace-profile-ubuntu-8-cores) * Use install:wasm-pack:sh where possible * A snapshot a day keeps the bugs away! 📷🐛 (OS: namespace-profile-ubuntu-8-cores) * A snapshot a day keeps the bugs away! 📷🐛 (OS: namespace-profile-ubuntu-8-cores) * @jtran's comments * Back to cargo * Use binary install of wasm-pack through taiki-e/install-action * Fix QL suggestions * Add PS7 link * Fix build:wasm:windows * Fix flip-files-to-nightly after PS7 upgrade * Pin taiki-e/install-action@v2.48.20 * Try with taiki-e/install-action@2dbeb927f5 * A snapshot a day keeps the bugs away! 📷🐛 (OS: namespace-profile-ubuntu-8-cores) * A snapshot a day keeps the bugs away! 📷🐛 (OS: namespace-profile-ubuntu-8-cores) * A snapshot a day keeps the bugs away! 📷🐛 (OS: namespace-profile-ubuntu-8-cores) * A snapshot a day keeps the bugs away! 📷🐛 (OS: namespace-profile-ubuntu-8-cores) * A snapshot a day keeps the bugs away! 📷🐛 (OS: namespace-profile-ubuntu-8-cores) * A snapshot a day keeps the bugs away! 📷🐛 (OS: namespace-profile-ubuntu-8-cores) * A snapshot a day keeps the bugs away! 📷🐛 (OS: namespace-profile-ubuntu-8-cores) * A snapshot a day keeps the bugs away! 📷🐛 (OS: namespace-profile-ubuntu-8-cores) * A snapshot a day keeps the bugs away! 📷🐛 (OS: namespace-profile-ubuntu-8-cores) --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
14 lines
593 B
PowerShell
14 lines
593 B
PowerShell
$REPO_OWNER = "KittyCAD"
|
|
$REPO_NAME = "modeling-app"
|
|
$WORKFLOW_NAME = "build-and-store-wasm.yml"
|
|
$ARTIFACT_NAME = "wasm-bundle"
|
|
|
|
# Fetch the latest completed workflow run ID for the specified workflow
|
|
$RUN_ID = (gh run list -w $WORKFLOW_NAME --repo $REPO_OWNER/$REPO_NAME --limit 1 --json databaseId -s completed --jq 'first | .databaseId') -join [Environment]::NewLine
|
|
|
|
$PKG_PATH="./src/wasm-lib/pkg/"
|
|
rm -r $PKG_PATH/*
|
|
gh run download $RUN_ID --repo $REPO_OWNER/$REPO_NAME --name $ARTIFACT_NAME --dir $PKG_PATH
|
|
cp $PKG_PATH/wasm_lib_bg.wasm public
|
|
echo "latest wasm copied to public folder"
|