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:
Jakub Sokołowski 2022-09-01 13:28:24 +02:00
parent 896ce9507a
commit 1e37ff91db
No known key found for this signature in database
GPG Key ID: 09AA5403E54D9931
9 changed files with 13 additions and 9 deletions

View File

@ -1,4 +1,4 @@
library 'status-jenkins-lib@v1.5.1'
library 'status-jenkins-lib@v1.5.3'
/* Options section can't access functions in objects. */
def isPRBuild = utils.isPRBuild()

View File

@ -1,4 +1,4 @@
library 'status-jenkins-lib@v1.5.1'
library 'status-jenkins-lib@v1.5.3'
pipeline {
agent { label 'linux' }

View File

@ -1,4 +1,4 @@
library 'status-jenkins-lib@v1.5.1'
library 'status-jenkins-lib@v1.5.3'
/* Options section can't access functions in objects. */
def isPRBuild = utils.isPRBuild()

View File

@ -1,4 +1,4 @@
library 'status-jenkins-lib@v1.5.1'
library 'status-jenkins-lib@v1.5.3'
pipeline {
agent { label params.AGENT_LABEL }

View File

@ -1,4 +1,4 @@
library 'status-jenkins-lib@v1.5.1'
library 'status-jenkins-lib@v1.5.3'
pipeline {

View File

@ -1,4 +1,4 @@
library 'status-jenkins-lib@v1.5.1'
library 'status-jenkins-lib@v1.5.3'
pipeline {
agent { label 'macos' }

View File

@ -1,4 +1,4 @@
library 'status-jenkins-lib@v1.5.1'
library 'status-jenkins-lib@v1.5.3'
pipeline {
agent { label 'linux' }

View File

@ -9,7 +9,7 @@ max-jobs = auto
# Helps avoid removing currently used dependencies via garbage collection
keep-derivations = true
keep-outputs = true
# Extra isolation for network and filesystem, doesn't work on MacOS
build-use-sandbox = false
# Some builds on MacOS have issue with sandbox so they are disabled with __noChroot.
sandbox = relaxed
# Enable Nix v2 interface.
experimental-features = nix-command

View File

@ -18,6 +18,10 @@ in buildGoPackage {
inherit meta;
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 ];
nativeBuildInputs = [ gomobile removeReferencesTo ]
++ optional (platform == "android") openjdk