diff --git a/multidim-interop/Makefile b/multidim-interop/Makefile index c0c9f6f..a9cf18d 100644 --- a/multidim-interop/Makefile +++ b/multidim-interop/Makefile @@ -2,8 +2,9 @@ GO_SUBDIRS := $(wildcard impl/go/*/.) JS_SUBDIRS := $(wildcard impl/js/*/.) RUST_SUBDIRS := $(wildcard impl/rust/*/.) NIM_SUBDIRS := $(wildcard impl/nim/*/.) +ZIG_SUBDIRS := $(wildcard impl/zig/*/.) -all: $(GO_SUBDIRS) $(JS_SUBDIRS) $(RUST_SUBDIRS) $(NIM_SUBDIRS) +all: $(GO_SUBDIRS) $(JS_SUBDIRS) $(RUST_SUBDIRS) $(NIM_SUBDIRS) $(ZIG_SUBDIRS) $(JS_SUBDIRS): $(MAKE) -C $@ $(GO_SUBDIRS): @@ -12,6 +13,8 @@ $(RUST_SUBDIRS): $(MAKE) -C $@ $(NIM_SUBDIRS): $(MAKE) -C $@ +$(ZIG_SUBDIRS): + $(MAKE) -C $@ -.PHONY: $(GO_SUBDIRS) $(JS_SUBDIRS) $(RUST_SUBDIRS) $(NIM_SUBDIRS) all +.PHONY: $(GO_SUBDIRS) $(JS_SUBDIRS) $(RUST_SUBDIRS) $(NIM_SUBDIRS) $(ZIG_SUBDIRS) all diff --git a/multidim-interop/impl/zig/.gitignore b/multidim-interop/impl/zig/.gitignore new file mode 100644 index 0000000..7598f68 --- /dev/null +++ b/multidim-interop/impl/zig/.gitignore @@ -0,0 +1 @@ +zig-libp2p-* diff --git a/multidim-interop/impl/zig/v0.0.1/Makefile b/multidim-interop/impl/zig/v0.0.1/Makefile new file mode 100644 index 0000000..d06d878 --- /dev/null +++ b/multidim-interop/impl/zig/v0.0.1/Makefile @@ -0,0 +1,14 @@ +image_name := zig-v0.0.1 +commitSha := 7435381b698bf282d088a64de1b24f5767bb9a4a + +all: image.json + +image.json: + wget -O zig-libp2p-${commitSha}.zip "https://github.com/marcopolo/zig-libp2p/archive/${commitSha}.zip" + unzip -o zig-libp2p-${commitSha}.zip + cd zig-libp2p-${commitSha} && docker build -t ${image_name} -f interop/Dockerfile . + docker image inspect ${image_name} -f "{{.Id}}" | \ + xargs -I {} echo "{\"imageID\": \"{}\"}" > $@ + +clean: + rm -rf image.json zig-libp2p-*.zip zig-libp2p-* diff --git a/multidim-interop/versions.ts b/multidim-interop/versions.ts index 0b7f6ac..a59a6bf 100644 --- a/multidim-interop/versions.ts +++ b/multidim-interop/versions.ts @@ -11,6 +11,7 @@ import jsV042 from "./impl/js/v0.42/node-image.json" import nimv10 from "./impl/nim/v1.0/image.json" import chromiumJsV041 from "./impl/js/v0.41/chromium-image.json" import chromiumJsV042 from "./impl/js/v0.42/chromium-image.json" +import zigv001 from "./impl/zig/v0.0.1/image.json" export type Version = { id: string, @@ -114,4 +115,11 @@ export const versions: Array = [ secureChannels: ["noise"], muxers: ["mplex", "yamux"], }, + { + id: "zig-v0.0.1", + containerImageID: zigv001.imageID, + transports: ["quic-v1"], + secureChannels: [], + muxers: [], + }, ]