Skip to content

Commit c74ee11

Browse files
authored
Add an M1-based OSX crossbuild and a NeoverseN1 build to CIRRUS CI (#3997)
* Add an M1-based OSX crossbuild and a NeoverseN1 build (plus Windows//LLVM commented out for now)
1 parent 65a7941 commit c74ee11

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

.cirrus.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,65 @@ macos_instance:
22
image: ghcr.io/cirruslabs/macos-monterey-xcode:latest
33

44
task:
5+
name: AppleM1/LLVM
56
compile_script:
67
- brew install llvm
78
- export PATH=/opt/homebrew/opt/llvm/bin:$PATH
89
- export LDFLAGS="-L/opt/homebrew/opt/llvm/lib"
910
- export CPPFLAGS="-I/opt/homebrew/opt/llvm/include"
1011
- make TARGET=VORTEX USE_OPENMP=1 CC=clang
12+
13+
macos_instance:
14+
image: ghcr.io/cirruslabs/macos-monterey-xcode:13.4
15+
task:
16+
name: AppleM1/LLVM x86_64 xbuild
17+
compile_script:
18+
- #brew install llvm
19+
- export #PATH=/opt/homebrew/opt/llvm/bin:$PATH
20+
- export #LDFLAGS="-L/opt/homebrew/opt/llvm/lib"
21+
- export #CPPFLAGS="-I/opt/homebrew/opt/llvm/include"
22+
- export ARCHS="i386 x86_64"
23+
- export ARCHS_STANDARD="i386 x86_64"
24+
- export ARCHS_STANDARD_32_64_BIT="i386 x86_64"
25+
- export ARCHS_STANDARD_64_BIT=x86_64
26+
- export ARCHS_STANDARD_INCLUDING_64_BIT="i386 x86_64"
27+
- export ARCHS_UNIVERSAL_IPHONE_OS="i386 x86_64"
28+
- export VALID_ARCHS="i386 x86_64"
29+
- #find /Applications/Xcode-13.4.1.app -name libunwind.dylib
30+
- export CC=/Applications/Xcode-13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
31+
- 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"
32+
- make TARGET=CORE2 DYNAMIC_ARCH=1 NUM_THREADS=32 HOSTCC=clang NOFORTRAN=1
33+
always:
34+
config_artifacts:
35+
path: "*conf*"
36+
type: text/plain
37+
# lib_artifacts:
38+
# path: "libopenblas*"
39+
# type: application/octet-streamm
40+
41+
42+
task:
43+
name: NeoverseN1
44+
arm_container:
45+
image: node:latest
46+
compile_script:
47+
- make
48+
49+
50+
#task:
51+
# name: Windows/LLVM16 --- too slow ---
52+
# windows_container:
53+
# image: cirrusci/windowsservercore:cmake-2021.12.07
54+
# install_script:
55+
# - choco list --localonly
56+
# - choco install -y llvm
57+
# - # choco install -y cmake --installargs '"ADD_CMAKE_TO_PATH=System"'
58+
# - choco install -y ninja
59+
# - refreshenv
60+
# - cd "c:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Auxiliary/Build"
61+
# - vcvarsall x64
62+
# - cd "C:\Users\ContainerAdministrator\AppData\Local\Temp\cirrus-ci-build"
63+
# - cmake -S . -B build -G "Ninja" -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_C_COMPILER=clang-cl -DCMAKE_MT=mt -DCMAKE_BUILD_TYPE=Release
64+
# - cd build
65+
# - cmake --build .
66+
# - ctest

0 commit comments

Comments
 (0)