mirror of
				https://github.com/ossrs/srs.git
				synced 2025-03-09 15:49:59 +00:00 
			
		
		
		
	Support build without cache to test if actions fail. v5.0.196 v6.0.96 (#3858)
By default, caching is enabled during compilation, which means that data is cached in Docker. This helps to avoid compiling third-party dependency libraries. However, sometimes when updating third-party libraries, it's necessary to disable caching to temporarily verify if the pipeline can succeed. Therefore, a configure option should be added. When this option is enabled, the compilation cache will not be used, and all third-party libraries will be compiled from scratch. --------- Co-authored-by: winlin <winlinvip@gmail.com>
This commit is contained in:
		
							parent
							
								
									1840476fe0
								
							
						
					
					
						commit
						4a100616fc
					
				
					 17 changed files with 51 additions and 35 deletions
				
			
		| 
						 | 
				
			
			@ -108,6 +108,8 @@ SRS_CROSS_BUILD_ARCH=
 | 
			
		|||
SRS_CROSS_BUILD_HOST=
 | 
			
		||||
# For cross build, the cross prefix, for example(FFmpeg), --cross-prefix=aarch64-linux-gnu-
 | 
			
		||||
SRS_CROSS_BUILD_PREFIX=
 | 
			
		||||
# For cache build
 | 
			
		||||
SRS_BUILD_CACHE=YES
 | 
			
		||||
#
 | 
			
		||||
#####################################################################################
 | 
			
		||||
# Toolchain for cross-build on Ubuntu for ARM or MIPS.
 | 
			
		||||
| 
						 | 
				
			
			@ -448,6 +450,10 @@ function parse_user_option() {
 | 
			
		|||
        --ffmpeg)                       SRS_FFMPEG_TOOL=$(switch2value $value) ;;
 | 
			
		||||
        --ffmpeg-tool)                  SRS_FFMPEG_TOOL=$(switch2value $value) ;;
 | 
			
		||||
 | 
			
		||||
        # use cache for build.
 | 
			
		||||
        --build-cache)                  SRS_BUILD_CACHE=YES         ;;
 | 
			
		||||
        --without-build-cache)          SRS_BUILD_CACHE=NO          ;;
 | 
			
		||||
 | 
			
		||||
        *)
 | 
			
		||||
            echo "$0: error: invalid option \"$option\""
 | 
			
		||||
            exit 1
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue