mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-26 20:49:29 -05:00
ci: Add arguments->systems procedure.
* gnu/ci.scm (arguments->systems): New procedure. (cuirass-jobs): Use it.
This commit is contained in:
parent
996b5edf51
commit
3034f3d05b
1 changed files with 10 additions and 4 deletions
14
gnu/ci.scm
14
gnu/ci.scm
|
@ -72,6 +72,8 @@ (define-module (gnu ci)
|
||||||
%core-packages
|
%core-packages
|
||||||
%cross-targets
|
%cross-targets
|
||||||
channel-source->package
|
channel-source->package
|
||||||
|
|
||||||
|
arguments->systems
|
||||||
cuirass-jobs))
|
cuirass-jobs))
|
||||||
|
|
||||||
;;; Commentary:
|
;;; Commentary:
|
||||||
|
@ -443,6 +445,13 @@ (define (load-manifest manifest)
|
||||||
load-manifest)
|
load-manifest)
|
||||||
manifests))))
|
manifests))))
|
||||||
|
|
||||||
|
(define (arguments->systems arguments)
|
||||||
|
"Return the systems list from ARGUMENTS."
|
||||||
|
(match (assoc-ref arguments 'systems)
|
||||||
|
(#f %cuirass-supported-systems)
|
||||||
|
((lst ...) lst)
|
||||||
|
((? string? str) (call-with-input-string str read))))
|
||||||
|
|
||||||
|
|
||||||
;;;
|
;;;
|
||||||
;;; Cuirass entry point.
|
;;; Cuirass entry point.
|
||||||
|
@ -454,10 +463,7 @@ (define subset
|
||||||
(assoc-ref arguments 'subset))
|
(assoc-ref arguments 'subset))
|
||||||
|
|
||||||
(define systems
|
(define systems
|
||||||
(match (assoc-ref arguments 'systems)
|
(arguments->systems arguments))
|
||||||
(#f %cuirass-supported-systems)
|
|
||||||
((lst ...) lst)
|
|
||||||
((? string? str) (call-with-input-string str read))))
|
|
||||||
|
|
||||||
(define channels
|
(define channels
|
||||||
(let ((channels (assq-ref arguments 'channels)))
|
(let ((channels (assq-ref arguments 'channels)))
|
||||||
|
|
Loading…
Reference in a new issue