mirror of
				https://github.com/XRPLF/clio.git
				synced 2025-11-04 03:45:50 +00:00 
			
		
		
		
	
				
					committed by
					
						
						Sergey Kuznetsov
					
				
			
			
				
	
			
			
			
						parent
						
							0054e4b64c
						
					
				
				
					commit
					edefb66c7e
				
			
							
								
								
									
										4
									
								
								.github/workflows/nightly.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/nightly.yml
									
									
									
									
										vendored
									
									
								
							@@ -13,12 +13,15 @@ jobs:
 | 
			
		||||
        include:
 | 
			
		||||
          - os: macos14
 | 
			
		||||
            build_type: Release
 | 
			
		||||
            static: false
 | 
			
		||||
          - os: heavy
 | 
			
		||||
            build_type: Release
 | 
			
		||||
            static: true
 | 
			
		||||
            container:
 | 
			
		||||
              image: rippleci/clio_ci:latest
 | 
			
		||||
          - os: heavy
 | 
			
		||||
            build_type: Debug
 | 
			
		||||
            static: true
 | 
			
		||||
            container:
 | 
			
		||||
              image: rippleci/clio_ci:latest
 | 
			
		||||
    runs-on: [self-hosted, "${{ matrix.os }}"]
 | 
			
		||||
@@ -50,6 +53,7 @@ jobs:
 | 
			
		||||
          conan_profile: ${{ steps.conan.outputs.conan_profile }}
 | 
			
		||||
          conan_cache_hit: ${{ steps.restore_cache.outputs.conan_cache_hit }}
 | 
			
		||||
          build_type: ${{ matrix.build_type }}
 | 
			
		||||
          static: ${{ matrix.static }}
 | 
			
		||||
 | 
			
		||||
      - name: Build Clio
 | 
			
		||||
        uses: ./.github/actions/build_clio
 | 
			
		||||
 
 | 
			
		||||
@@ -11,18 +11,16 @@ target_sources(clio_server PRIVATE Main.cpp)
 | 
			
		||||
target_link_libraries(clio_server PRIVATE clio)
 | 
			
		||||
 | 
			
		||||
if (static)
 | 
			
		||||
  target_link_options(clio_server PRIVATE -static)
 | 
			
		||||
 | 
			
		||||
  if (is_gcc AND NOT san)
 | 
			
		||||
  if (san)
 | 
			
		||||
    message(FATAL_ERROR "Static linkage not allowed when using sanitizers")
 | 
			
		||||
  elseif (is_appleclang)
 | 
			
		||||
    message(FATAL_ERROR "Static linkage not supported on AppleClang")
 | 
			
		||||
  else ()
 | 
			
		||||
    target_link_options(
 | 
			
		||||
      # For now let's assume that we only using libstdc++ under gcc.
 | 
			
		||||
      # Note: -static-libstdc++ can statically link both libstdc++ and libc++
 | 
			
		||||
      clio_server PRIVATE -static-libstdc++ -static-libgcc
 | 
			
		||||
    )
 | 
			
		||||
  endif ()
 | 
			
		||||
 | 
			
		||||
  if (is_appleclang)
 | 
			
		||||
    message(FATAL_ERROR "Static linkage not supported on AppleClang")
 | 
			
		||||
  endif ()
 | 
			
		||||
endif ()
 | 
			
		||||
 | 
			
		||||
set_target_properties(clio_server PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user