Skip to content

Commit 11d8677

Browse files
authored
Add Apple m1/iphoneos (cross)build in Cirrus CI (#4052)
* Add Apple m1/iphoneos (cross)build
1 parent ef80dbf commit 11d8677

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.cirrus.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,18 @@ task:
1010
- export CPPFLAGS="-I/opt/homebrew/opt/llvm/include"
1111
- make TARGET=VORTEX USE_OPENMP=1 CC=clang
1212

13+
task:
14+
name: AppleM1/LLVM/CMAKE
15+
compile_script:
16+
- brew install llvm
17+
- export PATH=/opt/homebrew/opt/llvm/bin:$PATH
18+
- export LDFLAGS="-L/opt/homebrew/opt/llvm/lib"
19+
- export CPPFLAGS="-I/opt/homebrew/opt/llvm/include"
20+
- mkdir build
21+
- cd build
22+
- cmake -DTARGET=VORTEX -DCMAKE_C_COMPILER=clang -DBUILD_SHARED_LIBS=ON ..
23+
- make
24+
1325
macos_instance:
1426
image: ghcr.io/cirruslabs/macos-monterey-xcode:13.4
1527
task:
@@ -38,6 +50,23 @@ task:
3850
# path: "libopenblas*"
3951
# type: application/octet-streamm
4052

53+
macos_instance:
54+
image: ghcr.io/cirruslabs/macos-monterey-xcode:13.4
55+
task:
56+
name: AppleM1/LLVM armv8-ios xbuild
57+
compile_script:
58+
- #brew install llvm
59+
- export #PATH=/opt/homebrew/opt/llvm/bin:$PATH
60+
- export #LDFLAGS="-L/opt/homebrew/opt/llvm/lib"
61+
- export #CPPFLAGS="-I/opt/homebrew/opt/llvm/include"
62+
- find /Applications/Xcode-13.4.1.app/Contents/Developer/Platforms -name "IPhoneOS*sdk"
63+
- export CC=/Applications/Xcode-13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
64+
- 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"
65+
- make TARGET=ARMV8 NUM_THREADS=32 HOSTCC=clang NOFORTRAN=1 CROSS=1
66+
always:
67+
config_artifacts:
68+
path: "*conf*"
69+
type: text/plain
4170

4271
task:
4372
name: NeoverseN1

0 commit comments

Comments
 (0)