3 Commits

Author SHA1 Message Date
62e61522e5 ci: post: Trigger correct job, do not wait
Some checks failed
Aimee OS/container-images/pipeline/head There was a failure building this commit
The next job in the pipeline is _rust-cross/main_, not
_cross-rust/main_.

Also, we don't need to wait for follow-up jobs.  Otherwise, we end up
with the whole pipeline blocking the _base_ job, etc.
2025-01-03 15:49:56 -06:00
ad77a3a035 ci: Trigger cross-rust build on success
Some checks failed
Aimee OS/container-images/pipeline/head There was a failure building this commit
When the "cross" image finishes building, Jenkins will start building a
new "cross-rust" image on top of it.
2024-12-22 09:16:29 -06:00
7946b8c084 Do not cross-compile Rust
This will happen in a separate layer.
2024-12-22 09:15:47 -06:00
2 changed files with 7 additions and 32 deletions

7
ci/Jenkinsfile vendored
View File

@@ -49,6 +49,13 @@ pipeline {
}
post {
success {
build([
job: "${BRANCH_NAME.replace('cross/', 'rust-cross%2F')}",
wait: false,
])
}
failure {
sh 'unshare -Ur --map-auto chown root:root -R tmp log'
dir('tmp/portage') {

View File

@@ -23,35 +23,3 @@ EOF
emerge -kvnj --rebuilt-binaries=y sys-devel/crossdev
crossdev --stable -t "$1"
ln -s /var/db/repos/gentoo/sys-devel/rust-std /var/db/repos/crossdev/cross-${target}/
case ${target%%-*} in
aarch64)
llvm_target=AArch64
;;
arm*)
llvm_target=ARM
;;
*)
printf 'Unknown LLVM target: %s' "${target%%-*}"
exit 1
;;
esac
mkdir -p \
/etc/portage/env/dev-lang \
/etc/portage/package.accept_keywords \
/etc/portage/package.use \
&& :
printf 'cross-%s/rust-std **\n' "${target}" \
> /etc/portage/package.accept_keywords/rust-cross
printf 'dev-lang/rust rust-src LLVM_TARGETS: %s\n' \
"${llvm_target}" \
> /etc/portage/package.use/rust-src
printf 'RUST_CROSS_TARGETS=( %s:%s:%s )\n' \
"${llvm_target}" \
"${target}" \
"${target}" \
>> /etc/portage/env/dev-lang/rust
emerge -vbknj cross-${target}/rust-std