Skip to content

notnullgames/null0-build

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is some experiments with very light WASM/WASI.

It will also eventually be the main build environment for null0 games.

Initially, I followed article here.

Building & using this container locally:

docker build -t null0 .
docker run -it --rm -v $(pwd):/cart null0

You can also do this to use the remote container that is already built for you:

docker run -it --rm -v $(pwd):/cart konsumer/null0:latest

build process

This is what I do to build/publish:

# setup initial buildx
docker buildx create --name buildx_builder --use --bootstrap

# This is for later when arm works
docker buildx build --tag konsumer/null0:latest --push --platform=linux/amd64,linux/arm64 .

# this is current procedure for only amd64
docker build -t konsumer/null0 .
docker push konsumer/null0

I disabled linux/arm64 platform because wasi-sdk has bugs there.

This will give you wasmer/clang/llvm/wasm-sdk/nim/zig/make/cmake/gcc/rust/nodejs/assemblyscript/binaryen/wabt/zip for building and working with carts.

I have left out emscripten, since we are going for very light wasm, without a lot of host-dependencies, and it can create some conflicts with the llvm-only light setup.

I should look into this, especially ideas in this which will essentiually create similar light builds, but allow you to see & tune the JS.

About

Docker container and examples for building carts in differnt languages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published