aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2022-02-02 18:14:47 +0000
committerChristopher Baines <mail@cbaines.net>2022-02-02 18:14:47 +0000
commit4115a5b0f4e7c03fbe86e544952fff0b2ceb4f84 (patch)
tree3b7bd4274fc9877d57ee93120f783f399b4ecd15
parent0f4507897b7c278a5afbf182d4b5c9ffdb65d2a4 (diff)
downloadbuild-coordinator-4115a5b0f4e7c03fbe86e544952fff0b2ceb4f84.tar
build-coordinator-4115a5b0f4e7c03fbe86e544952fff0b2ceb4f84.tar.gz
Prioritise aarch64-linux builds over armhf-linux builds
It's not great that this script hardcodes priorities, but since it does, just update it.
-rw-r--r--scripts/guix-build-coordinator-queue-builds-from-guix-data-service.in13
1 files changed, 9 insertions, 4 deletions
diff --git a/scripts/guix-build-coordinator-queue-builds-from-guix-data-service.in b/scripts/guix-build-coordinator-queue-builds-from-guix-data-service.in
index 28c18b3..7069dec 100644
--- a/scripts/guix-build-coordinator-queue-builds-from-guix-data-service.in
+++ b/scripts/guix-build-coordinator-queue-builds-from-guix-data-service.in
@@ -301,10 +301,15 @@
1000
500))
((eq? type 'package)
- (if (and (string=? system "x86_64-linux")
- (string=? target "none"))
- 500
- 0))
+ (cond
+ ((and (string=? system "x86_64-linux")
+ (string=? target "none"))
+ 500)
+ ((and (string=? system "aarch64-linux")
+ (string=? target "none"))
+ 500)
+ (else
+ 0)))
(else
0)))