Trying with cross

pull/1416/head
Quentin VIGNAUD 3 months ago
parent c7b28a9cce
commit 57901f8571

@ -56,7 +56,7 @@ treatment buildTestAyaForArch[logger: Logger, runner: CicdRunnerEngine](short: s
executor_name = |wrap<string>(short), executor_name = |wrap<string>(short),
commands = |raw_commands([ commands = |raw_commands([
//|format("rustup target add {arch}", |entry("arch", arch)), //|format("rustup target add {arch}", |entry("arch", arch)),
"cargo binstall cargo-hack" //, "cross binstall cargo-hack" //,
//${bash -c "curl https://raw.githubusercontent.com/taiki-e/install-action/refs/heads/cargo-hack/main.sh | bash -"}, //${bash -c "curl https://raw.githubusercontent.com/taiki-e/install-action/refs/heads/cargo-hack/main.sh | bash -"},
//${bash -c "curl https://raw.githubusercontent.com/taiki-e/setup-cross-toolchain-action/refs/tags/v1/main.sh | bash -"} //${bash -c "curl https://raw.githubusercontent.com/taiki-e/setup-cross-toolchain-action/refs/tags/v1/main.sh | bash -"}
]), ]),
@ -94,17 +94,17 @@ treatment buildTestAyaForArch[logger: Logger, runner: CicdRunnerEngine](short: s
executor_name = |wrap<string>(short), executor_name = |wrap<string>(short),
commands = |raw_commands([ commands = |raw_commands([
// Build // Build
"cargo hack build --all-targets --feature-powerset --exclude aya-ebpf --exclude aya-ebpf-bindings --exclude aya-log-ebpf --exclude integration-ebpf --exclude xtask --workspace", "cross hack build --all-targets --feature-powerset --exclude aya-ebpf --exclude aya-ebpf-bindings --exclude aya-log-ebpf --exclude integration-ebpf --exclude xtask --workspace",
// Test // Test
"cargo hack test --all-targets --feature-powerset --exclude aya-ebpf --exclude aya-ebpf-bindings --exclude aya-log-ebpf --exclude integration-ebpf --exclude integration-test --exclude xtask --workspace", "cross hack test --all-targets --feature-powerset --exclude aya-ebpf --exclude aya-ebpf-bindings --exclude aya-log-ebpf --exclude integration-ebpf --exclude integration-test --exclude xtask --workspace",
// Doc // Doc
"cargo hack test --doc --feature-powerset --exclude aya-ebpf --exclude aya-ebpf-bindings --exclude aya-log-ebpf --exclude integration-ebpf --exclude integration-test --exclude xtask --workspace" "cross hack test --doc --feature-powerset --exclude aya-ebpf --exclude aya-ebpf-bindings --exclude aya-log-ebpf --exclude integration-ebpf --exclude integration-test --exclude xtask --workspace"
]), ]),
environment = |wrap<Environment>( environment = |wrap<Environment>(
|environment( |environment(
|map([ |map([
|entry("RUST_BACKTRACE", "full"), |entry("RUST_BACKTRACE", "full")/*,
|entry("CARGO_BUILD_TARGET", arch) |entry("CARGO_BUILD_TARGET", arch)*/
]), ]),
"/root/aya", // working_directory "/root/aya", // working_directory
false, // expand_variables false, // expand_variables

Loading…
Cancel
Save