mirror of
https://github.com/VSadov/Satori.git
synced 2025-06-11 18:20:26 +09:00
Split Codespaces configuration based on development scenarios (#74683)
* Split libraries and wasm devcontainers Codespaces allows for monorepo support now. So we can have different pre-builds for different dev environments. Creating a "libraries" pre-build and a "wasm" pre-build devcontainer. * Move devcontainer files into separate folders * Path up a directory to the Dockerfile * Split the Dockerfile so it can be customized per devcontainer * Update Codespaces docs * Respond to PR feedback * Use the new open devcontainers path. * Use the GH CLI feature instead of installing it ourselves * Set hostRequirements for Codespaces Developing in dotnet/runtime with a 2-core / 4GB ram machine doesn't work very well. Add a minimum of 4-core machine to the devcontainer spec. Fix #75680
This commit is contained in:
parent
bff967bdd3
commit
55060ebf68
7 changed files with 177 additions and 57 deletions
|
@ -2,18 +2,26 @@
|
|||
|
||||
set -e
|
||||
|
||||
# prebuild the repo, so it is ready for development
|
||||
./build.sh libs+clr -rc Release
|
||||
# restore libs tests so that the project is ready to be loaded by OmniSharp
|
||||
./build.sh libs.tests -restore
|
||||
opt=$1
|
||||
case "$opt" in
|
||||
|
||||
# prebuild for WASM, so it is ready for wasm development
|
||||
make -C src/mono/wasm provision-wasm
|
||||
export EMSDK_PATH=$PWD/src/mono/wasm/emsdk
|
||||
./build.sh mono+libs -os Browser -c release
|
||||
libraries)
|
||||
# prebuild the repo, so it is ready for development
|
||||
./build.sh libs+clr -rc Release
|
||||
# restore libs tests so that the project is ready to be loaded by OmniSharp
|
||||
./build.sh libs.tests -restore
|
||||
;;
|
||||
|
||||
# install dotnet-serve for running wasm samples
|
||||
./dotnet.sh tool install dotnet-serve --tool-path ./.dotnet-tools-global
|
||||
wasm)
|
||||
# prebuild for WASM, so it is ready for wasm development
|
||||
make -C src/mono/wasm provision-wasm
|
||||
export EMSDK_PATH=$PWD/src/mono/wasm/emsdk
|
||||
./build.sh mono+libs -os Browser -c Release
|
||||
|
||||
# install dotnet-serve for running wasm samples
|
||||
./dotnet.sh tool install dotnet-serve --tool-path ./.dotnet-tools-global
|
||||
;;
|
||||
esac
|
||||
|
||||
# save the commit hash of the currently built assemblies, so developers know which version was built
|
||||
git rev-parse HEAD > ./artifacts/prebuild.sha
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue