cicd: remove iran specific nonsense from drone script
This commit is contained in:
		
							parent
							
								
									b4038f8691
								
							
						
					
					
						commit
						cdf58d74e5
					
				
					 1 changed files with 4 additions and 10 deletions
				
			
		
							
								
								
									
										14
									
								
								.drone.yml
									
										
									
									
									
								
							
							
						
						
									
										14
									
								
								.drone.yml
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -10,9 +10,6 @@ steps:
 | 
			
		|||
- name: build
 | 
			
		||||
  image: ubuntu:latest
 | 
			
		||||
  commands:
 | 
			
		||||
  - sed -i 's#http://archive.ubuntu.com/ubuntu/#http://ir.archive.ubuntu.com/ubuntu/#g' /etc/apt/sources.list.d/ubuntu.sources
 | 
			
		||||
  - head -n -8 /etc/apt/sources.list.d/ubuntu.sources > tmp && mv tmp /etc/apt/sources.list.d/ubuntu.sources
 | 
			
		||||
 | 
			
		||||
  - apt update
 | 
			
		||||
  - apt-get install -y build-essential cmake clang gcc g++ python3 python3-pip python3.12-venv
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -31,8 +28,8 @@ steps:
 | 
			
		|||
  - conan profile detect
 | 
			
		||||
  - cp ./tools/conan/profiles/linux_clang_amd64 $(conan profile path default)
 | 
			
		||||
 | 
			
		||||
  - conan remote add light https://artifactory.light7734.com/artifactory/api/conan/conan
 | 
			
		||||
  - conan install . -r light --build=missing
 | 
			
		||||
  # - conan remote add light https://artifactory.light7734.com/artifactory/api/conan/conan
 | 
			
		||||
  - conan install . --build=missing
 | 
			
		||||
  - conan build .
 | 
			
		||||
 | 
			
		||||
  - build/Release/modules/light
 | 
			
		||||
| 
						 | 
				
			
			@ -50,9 +47,6 @@ steps:
 | 
			
		|||
- name: build
 | 
			
		||||
  image: ubuntu:latest
 | 
			
		||||
  commands:
 | 
			
		||||
  - sed -i 's#http://archive.ubuntu.com/ubuntu/#http://ir.archive.ubuntu.com/ubuntu/#g' /etc/apt/sources.list.d/ubuntu.sources
 | 
			
		||||
  - head -n -8 /etc/apt/sources.list.d/ubuntu.sources > tmp && mv tmp /etc/apt/sources.list.d/ubuntu.sources
 | 
			
		||||
 | 
			
		||||
  - apt update
 | 
			
		||||
  - apt-get install -y build-essential cmake clang gcc g++ python3 python3-pip python3.12-venv
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -71,8 +65,8 @@ steps:
 | 
			
		|||
  - conan profile detect
 | 
			
		||||
  - cp ./tools/conan/profiles/linux_gcc_amd64 $(conan profile path default)
 | 
			
		||||
 | 
			
		||||
  - conan remote add light https://artifactory.light7734.com/artifactory/api/conan/conan
 | 
			
		||||
  - conan install . -r light --build=missing
 | 
			
		||||
  # - conan remote add light https://artifactory.light7734.com/artifactory/api/conan/conan
 | 
			
		||||
  - conan install . --build=missing
 | 
			
		||||
  - conan build .
 | 
			
		||||
 | 
			
		||||
  - build/Release/modules/light
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue