Skip to content

Commit 4d0b7fb

Browse files
authored
Adjust M1 crossbuilds after image autoupgrade and add an M1-to-Android crossbuild on Cirrus CI (#4117)
* Fix Apple crossbuilds after Cirrus updated the image; add a crossbuild to Android/ARMV7
1 parent 2183dbc commit 4d0b7fb

File tree

1 file changed

+28
-9
lines changed

1 file changed

+28
-9
lines changed

.cirrus.yml

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ task:
3232
- make
3333

3434
macos_instance:
35-
image: ghcr.io/cirruslabs/macos-monterey-xcode:13.4
35+
image: ghcr.io/cirruslabs/macos-monterey-xcode:latest
3636
task:
3737
name: AppleM1/LLVM x86_64 xbuild
3838
compile_script:
@@ -47,10 +47,11 @@ task:
4747
- export ARCHS_STANDARD_INCLUDING_64_BIT="i386 x86_64"
4848
- export ARCHS_UNIVERSAL_IPHONE_OS="i386 x86_64"
4949
- export VALID_ARCHS="i386 x86_64"
50-
- #find /Applications/Xcode-13.4.1.app -name libunwind.dylib
51-
- export CC=/Applications/Xcode-13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
52-
- export CFLAGS="-O2 -unwindlib=none -Wno-macro-redefined -isysroot /Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk -arch x86_64 -miphoneos-version-min=10.0"
53-
- make TARGET=CORE2 DYNAMIC_ARCH=1 NUM_THREADS=32 HOSTCC=clang NOFORTRAN=1
50+
- xcrun --sdk macosx --show-sdk-path
51+
- xcodebuild -version
52+
- export CC=/Applications/Xcode-14.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
53+
- export CFLAGS="-O2 -unwindlib=none -Wno-macro-redefined -isysroot /Applications/Xcode-14.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -arch x86_64"
54+
- make TARGET=CORE2 DYNAMIC_ARCH=1 NUM_THREADS=32 HOSTCC=clang NOFORTRAN=1 RANLIB="ls -l"
5455
always:
5556
config_artifacts:
5657
path: "*conf*"
@@ -60,23 +61,41 @@ task:
6061
# type: application/octet-streamm
6162

6263
macos_instance:
63-
image: ghcr.io/cirruslabs/macos-monterey-xcode:13.4
64+
image: ghcr.io/cirruslabs/macos-monterey-xcode:latest
6465
task:
6566
name: AppleM1/LLVM armv8-ios xbuild
6667
compile_script:
6768
- #brew install llvm
6869
- export #PATH=/opt/homebrew/opt/llvm/bin:$PATH
6970
- export #LDFLAGS="-L/opt/homebrew/opt/llvm/lib"
7071
- export #CPPFLAGS="-I/opt/homebrew/opt/llvm/include"
71-
- find /Applications/Xcode-13.4.1.app/Contents/Developer/Platforms -name "IPhoneOS*sdk"
72-
- export CC=/Applications/Xcode-13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
73-
- export CFLAGS="-O2 -unwindlib=none -Wno-macro-redefined -isysroot /Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.5.sdk -arch arm64 -miphoneos-version-min=10.0"
72+
- export CC=/Applications/Xcode-14.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
73+
- export CFLAGS="-O2 -unwindlib=none -Wno-macro-redefined -isysroot /Applications/Xcode-14.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.0.sdk -arch arm64 -miphoneos-version-min=10.0"
7474
- make TARGET=ARMV8 NUM_THREADS=32 HOSTCC=clang NOFORTRAN=1 CROSS=1
7575
always:
7676
config_artifacts:
7777
path: "*conf*"
7878
type: text/plain
7979

80+
macos_instance:
81+
image: ghcr.io/cirruslabs/macos-monterey-xcode:latest
82+
task:
83+
name: AppleM1/LLVM armv7-androidndk xbuild
84+
compile_script:
85+
- #brew install android-ndk
86+
- export #PATH=/opt/homebrew/opt/llvm/bin:$PATH
87+
- export #LDFLAGS="-L/opt/homebrew/opt/llvm/lib"
88+
- export #CPPFLAGS="-I/opt/homebrew/opt/llvm/include"
89+
- find /System/Volumes/Data/opt/homebrew/Caskroom/android-ndk/25b -name "armv7a-linux-androideabi*-ranlib"
90+
- #export CC=/Applications/Xcode-13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
91+
- #export CFLAGS="-O2 -unwindlib=none -Wno-macro-redefined -isysroot /Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.0.sdk -arch arm64 -miphoneos-version-min=10.0"
92+
- export CC=/System/Volumes/Data/opt/homebrew/Caskroom/android-ndk/25b/AndroidNDK8937393.app/Contents/NDK/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi23-clang
93+
- make TARGET=ARMV7 ARM_SOFTFP_ABI=1 NUM_THREADS=32 HOSTCC=clang NOFORTRAN=1 RANLIB="ls -l"
94+
always:
95+
config_artifacts:
96+
path: "*conf*"
97+
type: text/plain
98+
8099
task:
81100
name: NeoverseN1
82101
arm_container:

0 commit comments

Comments
 (0)