You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

.cirrus.yml 5.7 kB

11 months ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. macos_instance:
  2. image: ghcr.io/cirruslabs/macos-monterey-xcode:latest
  3. #task:
  4. # name: AppleM1/LLVM
  5. # compile_script:
  6. # - brew install llvm
  7. # - export PATH=/opt/homebrew/opt/llvm/bin:$PATH
  8. # - export LDFLAGS="-L/opt/homebrew/opt/llvm/lib"
  9. # - export CPPFLAGS="-I/opt/homebrew/opt/llvm/include"
  10. # - make TARGET=VORTEX USE_OPENMP=1 CC=clang
  11. #task:
  12. # name: AppleM1/LLVM/ILP64
  13. # compile_script:
  14. # - brew install llvm
  15. # - export PATH=/opt/homebrew/opt/llvm/bin:$PATH
  16. # - export LDFLAGS="-L/opt/homebrew/opt/llvm/lib"
  17. # - export CPPFLAGS="-I/opt/homebrew/opt/llvm/include"
  18. # - make TARGET=VORTEX USE_OPENMP=1 CC=clang INTERFACE64=1
  19. #task:
  20. # name: AppleM1/LLVM/CMAKE
  21. # compile_script:
  22. # - brew install llvm
  23. # - export PATH=/opt/homebrew/opt/llvm/bin:$PATH
  24. # - export LDFLAGS="-L/opt/homebrew/opt/llvm/lib"
  25. # - export CPPFLAGS="-I/opt/homebrew/opt/llvm/include"
  26. # - mkdir build
  27. # - cd build
  28. # - cmake -DTARGET=VORTEX -DCMAKE_C_COMPILER=clang -DBUILD_SHARED_LIBS=ON ..
  29. # - make -j 4
  30. #task:
  31. # name: AppleM1/GCC/MAKE/OPENMP
  32. # compile_script:
  33. # - brew install gcc@11
  34. # - export PATH=/opt/homebrew/bin:$PATH
  35. # - export LDFLAGS="-L/opt/homebrew/lib"
  36. # - export CPPFLAGS="-I/opt/homebrew/include"
  37. # - make CC=gcc-11 FC=gfortran-11 USE_OPENMP=1
  38. macos_instance:
  39. image: ghcr.io/cirruslabs/macos-sonoma-xcode:latest
  40. task:
  41. name: AppleM1/LLVM x86_64 xbuild
  42. compile_script:
  43. - #brew install llvm
  44. - export #PATH=/opt/homebrew/opt/llvm/bin:$PATH
  45. - export #LDFLAGS="-L/opt/homebrew/opt/llvm/lib"
  46. - export #CPPFLAGS="-I/opt/homebrew/opt/llvm/include"
  47. - export ARCHS="i386 x86_64"
  48. - export ARCHS_STANDARD="i386 x86_64"
  49. - export ARCHS_STANDARD_32_64_BIT="i386 x86_64"
  50. - export ARCHS_STANDARD_64_BIT=x86_64
  51. - export ARCHS_STANDARD_INCLUDING_64_BIT="i386 x86_64"
  52. - export ARCHS_UNIVERSAL_IPHONE_OS="i386 x86_64"
  53. - export VALID_ARCHS="i386 x86_64"
  54. - xcrun --sdk macosx --show-sdk-path
  55. - xcodebuild -version
  56. - export CC=/Applications/Xcode_16.3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
  57. - export CFLAGS="-O2 -unwindlib=none -Wno-macro-redefined -isysroot /Applications/Xcode_16.3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk -arch x86_64"
  58. - make TARGET=CORE2 DYNAMIC_ARCH=1 NUM_THREADS=32 HOSTCC=clang NOFORTRAN=1 RANLIB="ls -l"
  59. always:
  60. config_artifacts:
  61. path: "*conf*"
  62. type: text/plain
  63. # lib_artifacts:
  64. # path: "libopenblas*"
  65. # type: application/octet-streamm
  66. macos_instance:
  67. image: ghcr.io/cirruslabs/macos-sonoma-xcode:latest
  68. task:
  69. name: AppleM1/LLVM armv8-ios xbuild
  70. compile_script:
  71. - #brew install llvm
  72. - export #PATH=/opt/homebrew/opt/llvm/bin:$PATH
  73. - export #LDFLAGS="-L/opt/homebrew/opt/llvm/lib"
  74. - export #CPPFLAGS="-I/opt/homebrew/opt/llvm/include"
  75. - export CC=/Applications/Xcode_16.3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
  76. - export CFLAGS="-O2 -unwindlib=none -Wno-macro-redefined -isysroot /Applications/Xcode_16.3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk -arch arm64 -miphoneos-version-min=10.0"
  77. - xcrun --sdk iphoneos --show-sdk-path
  78. - ls -l /Applications
  79. - make TARGET=ARMV8 NUM_THREADS=32 HOSTCC=clang NOFORTRAN=1 CROSS=1
  80. always:
  81. config_artifacts:
  82. path: "*conf*"
  83. type: text/plain
  84. macos_instance:
  85. image: ghcr.io/cirruslabs/macos-sonoma-xcode:latest
  86. task:
  87. name: AppleM1/LLVM armv7-androidndk xbuild
  88. compile_script:
  89. - brew install --cask android-ndk
  90. - export ANDROID_NDK_HOME="/opt/homebrew/share/android-ndk"
  91. - export CC=/opt/homebrew/share/android-ndk/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi23-clang
  92. - make TARGET=ARMV7 ARM_SOFTFP_ABI=1 NUM_THREADS=32 HOSTCC=clang NOFORTRAN=1 RANLIB="ls -l"
  93. always:
  94. config_artifacts:
  95. path: "*conf*"
  96. type: text/plain
  97. task:
  98. name: NeoverseN1
  99. arm_container:
  100. image: node:latest
  101. compile_script:
  102. - make
  103. task:
  104. name: NeoverseN1-ILP64
  105. arm_container:
  106. image: node:latest
  107. compile_script:
  108. - make INTERFACE64=1
  109. task:
  110. name: NeoverseN1-OMP
  111. arm_container:
  112. image: node:latest
  113. cpu: 8
  114. compile_script:
  115. - make USE_OPENMP=1
  116. FreeBSD_task:
  117. name: FreeBSD-gcc
  118. freebsd_instance:
  119. image_family: freebsd-14-2
  120. install_script:
  121. - pkg update -f && pkg upgrade -y && pkg install -y gmake gcc
  122. compile_script:
  123. - ls -l /usr/local/lib
  124. - gmake CC=gcc
  125. FreeBSD_task:
  126. name: freebsd-gcc-ilp64
  127. freebsd_instance:
  128. image_family: freebsd-14-2
  129. install_script:
  130. - pkg update -f && pkg upgrade -y && pkg install -y gmake gcc
  131. compile_script:
  132. - ls -l /usr/local/lib
  133. - gmake CC=gcc INTERFACE64=1
  134. FreeBSD_task:
  135. name: FreeBSD-clang-openmp
  136. freebsd_instance:
  137. image_family: freebsd-14-2
  138. install_script:
  139. - pkg update -f && pkg upgrade -y && pkg install -y gmake gcc
  140. - ln -s /usr/local/lib/gcc13/libgfortran.so.5.0.0 /usr/lib/libgfortran.so
  141. compile_script:
  142. - gmake CC=clang FC=gfortran USE_OPENMP=1 CPP_THREAD_SAFETY_TEST=1
  143. #task:
  144. # name: Windows/LLVM16 --- too slow ---
  145. # windows_container:
  146. # image: cirrusci/windowsservercore:cmake-2021.12.07
  147. # install_script:
  148. # - choco list --localonly
  149. # - choco install -y llvm
  150. # - # choco install -y cmake --installargs '"ADD_CMAKE_TO_PATH=System"'
  151. # - choco install -y ninja
  152. # - refreshenv
  153. # - cd "c:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Auxiliary/Build"
  154. # - vcvarsall x64
  155. # - cd "C:\Users\ContainerAdministrator\AppData\Local\Temp\cirrus-ci-build"
  156. # - cmake -S . -B build -G "Ninja" -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_C_COMPILER=clang-cl -DCMAKE_MT=mt -DCMAKE_BUILD_TYPE=Release
  157. # - cd build
  158. # - cmake --build .
  159. # - ctest