#buildinfrarunc.cue at abominiation · cp...
1 messages · Page 1 of 1 (latest)
Not sure I understand the question.
Looking to have all combos of OS (two or three in this case) and what to build (one thing, I think, in this case). https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#using-a-matrix-strategy
similar to that ☝️
Oh here we go, got port forwarding setup for dagger cloud: https://dagger.cloud/runs/3cb240ca-30b2-4900-bedd-6b28ad62fd7e
nice!
Sort of yes.
Except it will be like 8 matrix items.
I run dagger do and it just hangs...let me try some debug logs
my cue eval also just hangs
hmmm
nevermind...had extra file in there 😄
It takes a minute to process.
cue eval is slow, though
152s to build a fully cached build (just a few steps).
I'm building a few times to check it out
second one
third one
trying with --no-cache
not a lot of benefit from the caching...hmmm
@slate flame I commented out the focal bits and got this result
Targets: {
"bionic": Linux
// "focal": Linux
}
#Target: {
id: string
{
id: "bionic"
kind: Targets.bionic
_img: #Bionic
output: _img.output
}//|
//{
// id: "focal"
// kind: Targets.focal
// _img: #Focal
// output: _img.output
//}
}
Yeah I'm going to have to find some other way to be clever.
It's super elegant. Guessing it's a combo of a slow performance area for CUE atm (for loops plus disjunctions) plus the way Dagger evals CUE many times during execution. Basically slow CUE gets magnified.
Also been trying to do something like this: https://dagger.cloud/runs/0f1f9416-53af-439b-b1da-c7b8cbc3b239
Where I read the target from the env and figure out what to do, also no good.
Yeah, you could be a bit more static and have
actions: {
build: {
bionic: ...
focal: ...
}
}
and then call dagger do build bionic
Targets: {
"bionic": #Bionic
"focal": #Focal
"jammy": #Jammy
}
nice
Yeah, this is working perfectly.
will you update in repo? Super curious to try the improved version 🙂
would love to get this pattern documented
It's on the main branch
Wow!
both built (with caching) in under 6 secs!
@fast breach nice one to pin 😄 #1015312490143416391 message
I'd been struggling with how to deal with filesystem writes templating that really helped.
pretty cool, thanks for sharing 🙂
Even with this, every target added adds a lot of overhead.