workaround for lack of sudo in Gitea
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Generic zig build / build (push) Has been cancelled
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	Generic zig build / build (push) Has been cancelled
				
			This commit is contained in:
		
							parent
							
								
									4998ac5803
								
							
						
					
					
						commit
						51f4a6d283
					
				
					 1 changed files with 12 additions and 1 deletions
				
			
		
							
								
								
									
										13
									
								
								.github/workflows/zig-build.yaml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										13
									
								
								.github/workflows/zig-build.yaml
									
										
									
									
										vendored
									
									
								
							|  | @ -14,7 +14,8 @@ jobs: | |||
|         with: | ||||
|           version: 0.12.0 | ||||
|       - uses: elerch/zig-action-cache@v1.1.6 | ||||
|       - name: Install system dependencies | ||||
|       - name: Install system dependencies (Github) | ||||
|         if: env.GITEA_ACTIONS != 'true' | ||||
|         run: | | ||||
|           sudo apt-get update  | ||||
|           sudo apt-get install fonts-hack # imagemagick (container has imagemagick, but version 6) | ||||
|  | @ -23,6 +24,16 @@ jobs: | |||
|           cd ImageMagick-7.1.1-31/ | ||||
|           ./configure && sudo make install && sudo ldconfig /usr/local/lib | ||||
|           cd .. | ||||
|       - name: Install system dependencies (Gitea) | ||||
|         if: env.GITEA_ACTIONS == 'true' | ||||
|         run: | | ||||
|           apt-get update  | ||||
|           apt-get install fonts-hack # imagemagick (container has imagemagick, but version 6) | ||||
|           curl -LOs https://github.com/ImageMagick/ImageMagick/archive/refs/tags/7.1.1-31.tar.gz | ||||
|           tar xzf 7.1.1-31.tar.gz | ||||
|           cd ImageMagick-7.1.1-31/ | ||||
|           ./configure && make install && ldconfig /usr/local/lib | ||||
|           cd .. | ||||
|       - name: Build project | ||||
|         run: zig build --summary all | ||||
|       - name: Run tests | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue