Using dependencies in anchor jobs

I’m trying to emulate the Travis CI build matrix using Anchors and the techniques suggested in various blog posts such as

However, in my non-matrix, a build doesn’t happen in a single step–it is multiple jobs with dependencies between them and artifacts transiently preserved across. How do I manage dependencies and artifacts across anchor jobs?