docs/current_docs/partials/cookbook/builds/_matrix-build.mdx
The following Dagger Function performs a matrix build.
<Tabs groupId="language" queryString="sdk"> <TabItem value="go" label="Go">Perform a matrix build of the source code in the golang/example/hello repository and export build directory with go binaries for different operating systems and architectures.
Inspect the contents of the exported directory with tree /tmp/matrix-builds. The output should look like this:
/tmp/matrix-builds
└── build
├── darwin
│ ├── amd64
│ │ └── hello
│ └── arm64
│ └── hello
└── linux
├── amd64
│ └── hello
└── arm64
└── hello
8 directories, 4 files