INNER CODE UNIT · Go

func

bliporg/blip · dagger/main.go:32

func (m *Blip) TestCore(
	ctx context.Context,
	// Source code
	// +defaultPath="/"
	// +ignore=["*", "!core", "!deps/libz/linux-x86_64", "!deps/libz/linux-aarch64", "!deps/bgfx/bgfx/3rdparty/cgltf"]
	src *dagger.Directory,
) error {
	// create container with source files
	ctr := dag.Container().From("voxowl/cpp-build-env:18.1.3")

	// retrieve container architecture and provide it as ENVAR inside the container
	{
		platform, err := ctr.Platform(ctx)
		if err != nil {
			return err
		}
		// platform is of the form "linux/arm64"
		// architecture is the second par of the platform string, after the '/'

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…