Setup workspaces

pull/1416/head
Quentin VIGNAUD 3 months ago
parent 584584f557
commit 80dde0f774

@ -24,6 +24,7 @@ use std/flow/concentrate::concentrateBlock
use std/flow/concentrate::concentrated use std/flow/concentrate::concentrated
use std/flow::trigger use std/flow::trigger
use std/ops/option::|wrap use std/ops/option::|wrap
use std/text/compose::|format
treatment buildTestAyaAll[logger: Logger]( treatment buildTestAyaAll[logger: Logger](
var github_contexts: string var github_contexts: string
@ -85,16 +86,21 @@ treatment buildTestAya[logger: Logger](
prepareContexts[contexts = contexts]( prepareContexts[contexts = contexts](
github_contexts = github_contexts github_contexts = github_contexts
) )
step0: checkout[contexts = contexts, logger = logger]() step0: checkout[contexts = contexts, logger = logger](
path = |format("/tmp/{arch}", |entry("arch", target_arch))
)
step1: RefStablerustToolchain[contexts = contexts, logger = logger]( step1: RefStablerustToolchain[contexts = contexts, logger = logger](
targets = target_arch targets = target_arch
) )
step2: rustCache[contexts = contexts, logger = logger]() step2: rustCache[contexts = contexts, logger = logger](
workspaces = |format("/tmp/{arch}", |entry("arch", target_arch))
)
step3: RefCargoHackinstallAction[contexts = contexts, logger = logger]() step3: RefCargoHackinstallAction[contexts = contexts, logger = logger]()
step4: setupCrossToolchainAction[contexts = contexts, logger = logger]( step4: setupCrossToolchainAction[contexts = contexts, logger = logger](
target = target_arch target = target_arch
) )
build: runAction[contexts = contexts, logger = logger]( build: runAction[contexts = contexts, logger = logger](
working_directory = |format("/tmp/{arch}", |entry("arch", target_arch)),
commands = ${ commands = ${
set -euxo pipefail set -euxo pipefail
cargo hack build --all-targets --feature-powerset \ cargo hack build --all-targets --feature-powerset \
@ -109,6 +115,7 @@ cargo hack build --all-targets --feature-powerset \
name = "build" name = "build"
) )
test: runAction[contexts = contexts, logger = logger]( test: runAction[contexts = contexts, logger = logger](
working_directory = |format("/tmp/{arch}", |entry("arch", target_arch)),
commands = ${set -euxo pipefail commands = ${set -euxo pipefail
cargo hack test --all-targets --feature-powerset \ cargo hack test --all-targets --feature-powerset \
--exclude aya-ebpf \ --exclude aya-ebpf \
@ -131,6 +138,7 @@ cargo hack test --all-targets --feature-powerset \
name = "test" name = "test"
) )
doctests: runAction[contexts = contexts, logger = logger]( doctests: runAction[contexts = contexts, logger = logger](
working_directory = |format("/tmp/{arch}", |entry("arch", target_arch)),
commands = ${ commands = ${
set -euxo pipefail set -euxo pipefail
cargo hack test --doc --feature-powerset \ cargo hack test --doc --feature-powerset \

Loading…
Cancel
Save