[gnome-build-meta/abderrahim/sandbox-build-arch: 2/2] project.conf: explicitly set the sandbox architecture




commit 210717cb67a8bec54fd9c26cf46a833b80ffcb12
Author: Abderrahim Kitouni <akitouni gnome org>
Date:   Tue Dec 1 09:18:16 2020 +0100

    project.conf: explicitly set the sandbox architecture
    
    This allows pulling artifacts built on other achitectures
    
    Completes 4f139491c52f5fefe3c4247bc8fe93d0aaade1ca

 project.conf | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/project.conf b/project.conf
index 51ce632e..aea3d1fd 100644
--- a/project.conf
+++ b/project.conf
@@ -2,7 +2,7 @@
 name: gnome
 
 # The minimum base BuildStream format
-format-version: 14
+format-version: 18
 
 # Where elements are stored
 element-path: elements
@@ -101,6 +101,15 @@ environment:
       CXXFLAGS: "%{flags_ppc64le}"
       LDFLAGS: "%{ldflags_defaults}"
 
+sandbox:
+  (?):
+  - arch in ("x86_64", "i686"):
+      build-arch: "x86_64"
+  - arch in ("aarch64", "arm"):
+      build-arch: "aarch64"
+  - arch == "ppc64le":
+      build-arch: "ppc64le"
+
 # Some overrides to element configuration based on type
 #
 # Here we can set a project wide options for various build systems,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]