~ salmonella-environment-setup (master) 3b19d2edbba3b781677fbae89eeb988b9021f303
commit 3b19d2edbba3b781677fbae89eeb988b9021f303
Author: Mario Domenech Goulart <mario@parenteses.org>
AuthorDate: Sun Dec 1 11:37:25 2024 +0100
Commit: Mario Domenech Goulart <mario@parenteses.org>
CommitDate: Sun Dec 1 11:37:25 2024 +0100
Add basic config files for CHICKEN 6 jobs
diff --git a/conf/chicken-6.conf b/conf/chicken-6.conf
new file mode 100644
index 0000000..973644d
--- /dev/null
+++ b/conf/chicken-6.conf
@@ -0,0 +1,7 @@
+;; -*- scheme -*-
+(cond-expand
+ (chicken-5
+ (import (chicken load)))
+ (else))
+
+(load-relative "./common/chicken-6.scm")
diff --git a/conf/common/chicken-6.scm b/conf/common/chicken-6.scm
new file mode 100644
index 0000000..db0f67d
--- /dev/null
+++ b/conf/common/chicken-6.scm
@@ -0,0 +1,51 @@
+(import scheme)
+(cond-expand
+ (chicken-4
+ (import chicken files))
+ (chicken-5
+ (import (chicken format)
+ (chicken load)
+ (chicken pathname)
+ (chicken platform)
+ (chicken process)
+ (chicken process-context)))
+ (else
+ (error "Unsupported CHICKEN version.")))
+
+(load-relative "./common.scm")
+
+(chicken-release 6)
+
+;; FIXME: use master
+(chicken-core-branch "utf+r7rs")
+
+(chicken-bootstrap-prefix (ensure-environment-variable "CHICKEN_6_PREFIX"))
+
+;; FIXME: Needed to use salmonella for C5. Remove this once
+;; salmonella + tools are ported to C6
+(salmonella-path
+ (make-pathname (list (ensure-environment-variable "CHICKEN_5_PREFIX")
+ "bin")
+ "salmonella"))
+
+(skip-eggs
+ (append
+ (case (software-version)
+ ((openbsd) '(inotify))
+ ((freebsd) '(inotify pledge unveil))
+ ((linux) '(pledge unveil)))
+ (skip-eggs)))
+
+(before-make-bootstrap-hook
+ (lambda (chicken-core-dir)
+ (change-directory chicken-core-dir)
+ ;; salmonella-run-publish does not use the configure script, so we
+ ;; have to create config.make.
+ (system* "touch config.make")))
+
+
+;;; Uncomment the lines below to quickly test the workflow (skip
+;;; building CHICKEN and only test one egg)
+;;
+;; (list-eggs (lambda () '(ansi-escape-sequences)))
+;; (pre-built-chicken "/path/to/prebuilt/chicken-6")
Trap