ci: disable sandbox for status-go iOS builds
Otherwise we get weird failures like these: ``` clang-11: error: cannot use 'cpp-output' output with multiple -arch options clang-11: error: invalid argument '-mmacos-version-min=10.12' not allowed with '-miphoneos-version-min=8.0' clang-11: error: invalid argument '-mmacos-version-min=10.12' not allowed with '-miphoneos-version-min=8.0' ``` Depends on: https://github.com/status-im/status-jenkins-lib/pull/47 Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
c73ef111f8
commit
718e6cdbb3
|
@ -1,4 +1,4 @@
|
||||||
library 'status-jenkins-lib@v1.5.2'
|
library 'status-jenkins-lib@v1.5.3'
|
||||||
|
|
||||||
/* Options section can't access functions in objects. */
|
/* Options section can't access functions in objects. */
|
||||||
def isPRBuild = utils.isPRBuild()
|
def isPRBuild = utils.isPRBuild()
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
library 'status-jenkins-lib@v1.5.2'
|
library 'status-jenkins-lib@v1.5.3'
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent { label 'linux' }
|
agent { label 'linux' }
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
library 'status-jenkins-lib@v1.5.2'
|
library 'status-jenkins-lib@v1.5.3'
|
||||||
|
|
||||||
/* Options section can't access functions in objects. */
|
/* Options section can't access functions in objects. */
|
||||||
def isPRBuild = utils.isPRBuild()
|
def isPRBuild = utils.isPRBuild()
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
library 'status-jenkins-lib@v1.5.2'
|
library 'status-jenkins-lib@v1.5.3'
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent { label params.AGENT_LABEL }
|
agent { label params.AGENT_LABEL }
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
library 'status-jenkins-lib@v1.5.2'
|
library 'status-jenkins-lib@v1.5.3'
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
library 'status-jenkins-lib@v1.5.2'
|
library 'status-jenkins-lib@v1.5.3'
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent { label 'macos' }
|
agent { label 'macos' }
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
library 'status-jenkins-lib@v1.5.2'
|
library 'status-jenkins-lib@v1.5.3'
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent { label 'linux' }
|
agent { label 'linux' }
|
||||||
|
|
|
@ -9,7 +9,7 @@ max-jobs = auto
|
||||||
# Helps avoid removing currently used dependencies via garbage collection
|
# Helps avoid removing currently used dependencies via garbage collection
|
||||||
keep-derivations = true
|
keep-derivations = true
|
||||||
keep-outputs = true
|
keep-outputs = true
|
||||||
# Extra isolation for network and filesystem, doesn't work on MacOS
|
# Some builds on MacOS have issue with sandbox so they are disabled with __noChroot.
|
||||||
build-use-sandbox = false
|
sandbox = relaxed
|
||||||
# Enable Nix v2 interface.
|
# Enable Nix v2 interface.
|
||||||
experimental-features = nix-command
|
experimental-features = nix-command
|
||||||
|
|
|
@ -18,6 +18,10 @@ in buildGoPackage {
|
||||||
inherit meta;
|
inherit meta;
|
||||||
inherit (source) src goPackagePath;
|
inherit (source) src goPackagePath;
|
||||||
|
|
||||||
|
# Sandbox causes Xcode issues on MacOS. Requires sandbox=relaxed.
|
||||||
|
# https://github.com/status-im/status-mobile/pull/13912
|
||||||
|
__noChroot = (platform == "ios");
|
||||||
|
|
||||||
extraSrcPaths = [ gomobile ];
|
extraSrcPaths = [ gomobile ];
|
||||||
nativeBuildInputs = [ gomobile removeReferencesTo ]
|
nativeBuildInputs = [ gomobile removeReferencesTo ]
|
||||||
++ optional (platform == "android") openjdk
|
++ optional (platform == "android") openjdk
|
||||||
|
|
Loading…
Reference in New Issue