mirror of
https://github.com/VSadov/Satori.git
synced 2025-06-08 11:37:04 +09:00

* Debug * Building steps logging. * Chop up restore and clean cache in between * Restore does not take as much space as codespaces setup files in "/workspaces/.codespaces". * Try removing the biggest offender. * Cannot see the impact of cleanup on the size check logs. * Move setup code into post-create * Pass arg to the script, otherwise nothing is triggered * Move all commands up to restore to onCreate. Restore should be done after codespaces setup when occupied disc space drops. * Fix: wasm does not have artifacts dir on writing to this file. * This would work but is not 100% reliable - user can interact with the VM before the command finishes. * Build subset by subset. * Easy fix - requre bigger disc.
14 lines
No EOL
425 B
Bash
Executable file
14 lines
No EOL
425 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
opt=$1
|
|
case "$opt" in
|
|
android)
|
|
# Create the Android emulator.
|
|
${ANDROID_SDK_ROOT}/cmdline-tools/cmdline-tools/bin/avdmanager -s create avd --name ${EMULATOR_NAME_X64} --package "system-images;android-${SDK_API_LEVEL};default;x86_64"
|
|
;;
|
|
esac
|
|
|
|
# reset the repo to the commit hash that was used to build the prebuilt Codespace
|
|
git reset --hard $(cat ./artifacts/prebuild.sha) |