* 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>
25 lines
941 B
Bash
25 lines
941 B
Bash
#!/bin/bash
|
|
|
|
# Set the repository owner and name
|
|
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 api repos/$REPO_OWNER/$REPO_NAME/actions/workflows/$WORKFLOW_NAME/runs --paginate --jq '.workflow_runs[] | select(.status=="completed") | .id' | head -n 1)
|
|
RUN_ID=$(gh api repos/$REPO_OWNER/$REPO_NAME/actions/workflows/$WORKFLOW_NAME/runs --paginate --jq '.workflow_runs[] | select(.status=="completed" and .conclusion=="success") | .id' | head -n 1)
|
|
|
|
echo $RUN_ID
|
|
|
|
# Check if a valid RUN_ID was found
|
|
if [ -z "$RUN_ID" ]; then
|
|
echo "Failed to find a workflow run for $WORKFLOW_NAME."
|
|
exit 1
|
|
fi
|
|
|
|
gh run download $RUN_ID --repo $REPO_OWNER/$REPO_NAME --name $ARTIFACT_NAME --dir ./src/wasm-lib/pkg
|
|
|
|
cp src/wasm-lib/pkg/wasm_lib_bg.wasm public
|
|
echo "latest wasm copied to public folder"
|