mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
hydra: Make the list of target systems a parameter.
* build-aux/hydra/gnu-system.scm (hydra-jobs): Define 'systems' and use it.
This commit is contained in:
parent
6915da225f
commit
c0fda0b0df
1 changed files with 8 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017 Ludovic Courtès <ludo@gnu.org>
|
;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018 Ludovic Courtès <ludo@gnu.org>
|
||||||
;;; Copyright © 2017 Jan Nieuwenhuizen <janneke@gnu.org>
|
;;; Copyright © 2017 Jan Nieuwenhuizen <janneke@gnu.org>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
|
@ -297,6 +297,12 @@ (define subset
|
||||||
(((? string?) (? string?) ...) 'list) ; only build selected list of packages
|
(((? string?) (? string?) ...) 'list) ; only build selected list of packages
|
||||||
(_ 'all))) ; build everything
|
(_ 'all))) ; build everything
|
||||||
|
|
||||||
|
(define systems
|
||||||
|
(match (assoc-ref arguments 'systems)
|
||||||
|
(#f %hydra-supported-systems)
|
||||||
|
((lst ...) lst)
|
||||||
|
((? string? str) (call-with-input-string str read))))
|
||||||
|
|
||||||
(define (cross-jobs system)
|
(define (cross-jobs system)
|
||||||
(define (from-32-to-64? target)
|
(define (from-32-to-64? target)
|
||||||
;; Return true if SYSTEM is 32-bit and TARGET is 64-bit. This hack
|
;; Return true if SYSTEM is 32-bit and TARGET is 64-bit. This hack
|
||||||
|
@ -387,4 +393,4 @@ (define (either proc1 proc2 proc3)
|
||||||
'()))
|
'()))
|
||||||
(else
|
(else
|
||||||
(error "unknown subset" subset))))
|
(error "unknown subset" subset))))
|
||||||
%hydra-supported-systems)))
|
systems)))
|
||||||
|
|
Loading…
Reference in a new issue