ci: minor ci improvements
	
		
			
	
		
	
	
		
	
		
			Some checks reported errors
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build encountered an error
				
			
		
		
	
	
				
					
				
			
		
			Some checks reported errors
		
		
	
	continuous-integration/drone/push Build encountered an error
				
			This commit is contained in:
		
							parent
							
								
									9c071493c5
								
							
						
					
					
						commit
						28010e9a92
					
				
					 5 changed files with 21 additions and 50 deletions
				
			
		
							
								
								
									
										46
									
								
								.drone.yml
									
										
									
									
									
								
							
							
						
						
									
										46
									
								
								.drone.yml
									
										
									
									
									
								
							|  | @ -2,14 +2,15 @@ | ||||||
| kind: pipeline | kind: pipeline | ||||||
| type: exec | type: exec | ||||||
| name: macrohard doors | name: macrohard doors | ||||||
| 
 | trigger: | ||||||
|  |   branch: | ||||||
|  |   - main | ||||||
| platform: | platform: | ||||||
|   os: windows |   os: windows | ||||||
|   arch: amd64 |   arch: amd64 | ||||||
| 
 | 
 | ||||||
| clone: | clone: | ||||||
|   disable: true |   disable: true | ||||||
| 
 |  | ||||||
| steps: | steps: | ||||||
| - name: clone | - name: clone | ||||||
|   environment: |   environment: | ||||||
|  | @ -22,10 +23,6 @@ steps: | ||||||
| kind: pipeline | kind: pipeline | ||||||
| type: docker | type: docker | ||||||
| name: unit tests | name: unit tests | ||||||
| clone: |  | ||||||
|   recursive: true |  | ||||||
|   submodule_update_remote: true |  | ||||||
| 
 |  | ||||||
| trigger: | trigger: | ||||||
|   branch: |   branch: | ||||||
|   - main |   - main | ||||||
|  | @ -38,13 +35,13 @@ steps: | ||||||
|     - | |     - | | ||||||
|       set -e |       set -e | ||||||
| 
 | 
 | ||||||
|       git submodule update --init --recursive |  | ||||||
|       conan build . \ |       conan build . \ | ||||||
|         -c tools.system.package_manager:mode=install \ |         -c tools.system.package_manager:mode=install \ | ||||||
|         -c tools.cmake.cmaketoolchain:generator=Ninja \ |         -c tools.cmake.cmaketoolchain:generator=Ninja \ | ||||||
|         -s build_type=Release \ |         -s build_type=Release \ | ||||||
|         -o enable_static_analysis=False \ |         -o enable_static_analysis=False \ | ||||||
|         -o enable_tests=True \ |         -o enable_tests=True \ | ||||||
|  |         -o use_mold=True \ | ||||||
|         --build=missing |         --build=missing | ||||||
| 
 | 
 | ||||||
|       for test in $(find ./build -type f -name '*_tests' -executable); do |       for test in $(find ./build -type f -name '*_tests' -executable); do | ||||||
|  | @ -56,10 +53,6 @@ steps: | ||||||
| kind: pipeline | kind: pipeline | ||||||
| type: docker | type: docker | ||||||
| name: valgrind | name: valgrind | ||||||
| clone: |  | ||||||
|   recursive: true |  | ||||||
|   submodule_update_remote: true |  | ||||||
| 
 |  | ||||||
| trigger: | trigger: | ||||||
|   branch: |   branch: | ||||||
|   - main |   - main | ||||||
|  | @ -72,13 +65,13 @@ steps: | ||||||
|     - | |     - | | ||||||
|       set -e |       set -e | ||||||
| 
 | 
 | ||||||
|       git submodule update --init --recursive |  | ||||||
|       conan build . \ |       conan build . \ | ||||||
|         -c tools.system.package_manager:mode=install \ |         -c tools.system.package_manager:mode=install \ | ||||||
|         -c tools.cmake.cmaketoolchain:generator=Ninja \ |         -c tools.cmake.cmaketoolchain:generator=Ninja \ | ||||||
|         -s build_type=Release \ |         -s build_type=Release \ | ||||||
|         -o enable_static_analysis=False \ |         -o enable_static_analysis=False \ | ||||||
|         -o enable_tests=True \ |         -o enable_tests=True \ | ||||||
|  |         -o use_mold=True \ | ||||||
|         --build=missing |         --build=missing | ||||||
| 
 | 
 | ||||||
|       find ./build -type f -name "*_tests" -executable | xargs -I {} bash -c 'valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --verbose --error-exitcode=255 {}' || exit 1 |       find ./build -type f -name "*_tests" -executable | xargs -I {} bash -c 'valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --verbose --error-exitcode=255 {}' || exit 1 | ||||||
|  | @ -87,10 +80,6 @@ steps: | ||||||
| kind: pipeline | kind: pipeline | ||||||
| type: docker | type: docker | ||||||
| name: leak sanitizer | name: leak sanitizer | ||||||
| clone: |  | ||||||
|   recursive: true |  | ||||||
|   submodule_update_remote: true |  | ||||||
| 
 |  | ||||||
| trigger: | trigger: | ||||||
|   branch: |   branch: | ||||||
|   - main |   - main | ||||||
|  | @ -103,12 +92,7 @@ steps: | ||||||
|     - | |     - | | ||||||
|       set -e |       set -e | ||||||
| 
 | 
 | ||||||
|       git submodule update --init --recursive |  | ||||||
|       conan build . \ |       conan build . \ | ||||||
|         -s build_type=Release \ |  | ||||||
|         -s compiler=clang \ |  | ||||||
|         -s compiler.version=20 \ |  | ||||||
|         -s compiler.libcxx=libc++ \ |  | ||||||
|         -c tools.system.package_manager:mode=install \ |         -c tools.system.package_manager:mode=install \ | ||||||
|         -c tools.cmake.cmaketoolchain:generator=Ninja \ |         -c tools.cmake.cmaketoolchain:generator=Ninja \ | ||||||
|         -c tools.build:cxxflags='["-g", "-fno-omit-frame-pointer", "-nostdinc++", "-isystem", "/libcxx_lsan/include/c++/v1/", "-fsanitize=leak"]' \ |         -c tools.build:cxxflags='["-g", "-fno-omit-frame-pointer", "-nostdinc++", "-isystem", "/libcxx_lsan/include/c++/v1/", "-fsanitize=leak"]' \ | ||||||
|  | @ -116,8 +100,11 @@ steps: | ||||||
|         -c tools.build:exelinkflags='["-L/libcxx_lsan/lib", "-Wl,-rpath,/libcxx_lsan/lib", "-lc++", "-lc++abi", "-fsanitize=leak"]' \ |         -c tools.build:exelinkflags='["-L/libcxx_lsan/lib", "-Wl,-rpath,/libcxx_lsan/lib", "-lc++", "-lc++abi", "-fsanitize=leak"]' \ | ||||||
|         -c tools.info.package_id:confs='["tools.build:cxxflags","tools.build:sharedlinkflags","tools.build:exelinkflags"]' \ |         -c tools.info.package_id:confs='["tools.build:cxxflags","tools.build:sharedlinkflags","tools.build:exelinkflags"]' \ | ||||||
|         -c tools.build:compiler_executables='{"c": "clang", "cpp": "clang++"}' \ |         -c tools.build:compiler_executables='{"c": "clang", "cpp": "clang++"}' \ | ||||||
|         -o enable_static_analysis=False \ |         -s build_type=Release \ | ||||||
|         -o enable_tests=True \ |         -s compiler=clang \ | ||||||
|  |         -s compiler.version=20 \ | ||||||
|  |         -s compiler.libcxx=libc++ \ | ||||||
|  |         -o use_mold=True \ | ||||||
|         --build=missing |         --build=missing | ||||||
|       for test in $(find ./build -type f -name '*_tests' -executable); do |       for test in $(find ./build -type f -name '*_tests' -executable); do | ||||||
|         echo "Running $test" |         echo "Running $test" | ||||||
|  | @ -128,10 +115,6 @@ steps: | ||||||
| kind: pipeline | kind: pipeline | ||||||
| type: docker | type: docker | ||||||
| name: static analysis | name: static analysis | ||||||
| clone: |  | ||||||
|   recursive: true |  | ||||||
|   submodule_update_remote: true |  | ||||||
| 
 |  | ||||||
| trigger: | trigger: | ||||||
|   branch: |   branch: | ||||||
|   - main |   - main | ||||||
|  | @ -143,24 +126,19 @@ steps: | ||||||
|   privileged: true |   privileged: true | ||||||
|   commands: |   commands: | ||||||
|     - | |     - | | ||||||
|       git submodule update --init --recursive |  | ||||||
| 
 |  | ||||||
|       conan build . \ |       conan build . \ | ||||||
|         -c tools.system.package_manager:mode=install \ |         -c tools.system.package_manager:mode=install \ | ||||||
|         -c tools.cmake.cmaketoolchain:generator=Ninja \ |         -c tools.cmake.cmaketoolchain:generator=Ninja \ | ||||||
|         -s build_type=Debug \ |         -s build_type=Release \ | ||||||
|         -o enable_static_analysis=True \ |         -o enable_static_analysis=True \ | ||||||
|         -o enable_tests=True \ |         -o enable_tests=True \ | ||||||
|  |         -o use_mold=True \ | ||||||
|         --build=missing |         --build=missing | ||||||
| 
 | 
 | ||||||
| --- | --- | ||||||
| kind: pipeline | kind: pipeline | ||||||
| type: docker | type: docker | ||||||
| name: clang format | name: clang format | ||||||
| clone: |  | ||||||
|   recursive: true |  | ||||||
|   submodule_update_remote: true |  | ||||||
| 
 |  | ||||||
| trigger: | trigger: | ||||||
|   branch: |   branch: | ||||||
|   - main |   - main | ||||||
|  |  | ||||||
|  | @ -49,7 +49,7 @@ RUN git clone --depth=1 https://github.com/llvm/llvm-project.git -b llvmorg-20.1 | ||||||
|     && ninja -C . install-cxx install-cxxabi \ |     && ninja -C . install-cxx install-cxxabi \ | ||||||
|     && rm -r /llvm-project/ |     && rm -r /llvm-project/ | ||||||
| 
 | 
 | ||||||
| RUN git clone 'https://git.light7734.com/light7734/light.git' --recursive \ | RUN git clone 'https://git.light7734.com/light7734/light.git' \ | ||||||
|     && cd light \ |     && cd light \ | ||||||
|     && conan install . \ |     && conan install . \ | ||||||
|         -c tools.system.package_manager:mode=install \ |         -c tools.system.package_manager:mode=install \ | ||||||
|  | @ -63,4 +63,5 @@ RUN git clone 'https://git.light7734.com/light7734/light.git' --recursive \ | ||||||
|         -s compiler=clang \ |         -s compiler=clang \ | ||||||
|         -s compiler.version=20 \ |         -s compiler.version=20 \ | ||||||
|         -s compiler.libcxx=libc++ \ |         -s compiler.libcxx=libc++ \ | ||||||
|  |         -o use_mold=True \ | ||||||
|         --build=missing |         --build=missing | ||||||
|  |  | ||||||
|  | @ -31,11 +31,12 @@ RUN clang --version  \ | ||||||
|     && mold --version |     && mold --version | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| RUN git clone 'https://git.light7734.com/light7734/light.git' --recursive \ | RUN git clone 'https://git.light7734.com/light7734/light.git' \ | ||||||
|     && cd light \ |     && cd light \ | ||||||
|     && conan install . \ |     && conan install . \ | ||||||
|         -c tools.system.package_manager:mode=install \ |         -c tools.system.package_manager:mode=install \ | ||||||
|         -c tools.cmake.cmaketoolchain:generator=Ninja \ |         -c tools.cmake.cmaketoolchain:generator=Ninja \ | ||||||
|         -s build_type=Debug \ |         -s build_type=Release \ | ||||||
|         -o enable_static_analysis=True \ |         -o enable_static_analysis=True \ | ||||||
|  |         -o use_mold=True \ | ||||||
|         --build=missing |         --build=missing | ||||||
|  |  | ||||||
|  | @ -16,7 +16,6 @@ RUN apk add --no-cache \ | ||||||
|     ninja \ |     ninja \ | ||||||
|     mold |     mold | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| RUN pip install --no-cache-dir --break-system-packages conan gitpython \ | RUN pip install --no-cache-dir --break-system-packages conan gitpython \ | ||||||
|     && conan profile detect |     && conan profile detect | ||||||
| 
 | 
 | ||||||
|  | @ -29,15 +28,11 @@ RUN clang --version  \ | ||||||
|     && ninja --version \ |     && ninja --version \ | ||||||
|     && mold --version |     && mold --version | ||||||
| 
 | 
 | ||||||
| RUN git clone 'https://git.light7734.com/light7734/light.git' --recursive \ | RUN git clone 'https://git.light7734.com/light7734/light.git' \ | ||||||
|     && cd light \ |     && cd light \ | ||||||
|     && conan install . \ |  | ||||||
|         -s build_type=Debug \ |  | ||||||
|         -c tools.system.package_manager:mode=install \ |  | ||||||
|         -c tools.cmake.cmaketoolchain:generator=Ninja \ |  | ||||||
|         --build=missing \ |  | ||||||
|     && conan install . \ |     && conan install . \ | ||||||
|         -s build_type=Release \ |         -s build_type=Release \ | ||||||
|         -c tools.system.package_manager:mode=install \ |         -c tools.system.package_manager:mode=install \ | ||||||
|         -c tools.cmake.cmaketoolchain:generator=Ninja \ |         -c tools.cmake.cmaketoolchain:generator=Ninja \ | ||||||
|  |         -o use_mold=True \ | ||||||
|         --build=missing |         --build=missing | ||||||
|  |  | ||||||
|  | @ -29,15 +29,11 @@ RUN clang --version  \ | ||||||
|     && ninja --version \ |     && ninja --version \ | ||||||
|     && mold --version |     && mold --version | ||||||
| 
 | 
 | ||||||
| RUN git clone 'https://git.light7734.com/light7734/light.git' --recursive \ | RUN git clone 'https://git.light7734.com/light7734/light.git' \ | ||||||
|     && cd light \ |     && cd light \ | ||||||
|     && conan install . \ |  | ||||||
|         -s build_type=Debug \ |  | ||||||
|         -c tools.system.package_manager:mode=install \ |  | ||||||
|         -c tools.cmake.cmaketoolchain:generator=Ninja \ |  | ||||||
|         --build=missing \ |  | ||||||
|     && conan install . \ |     && conan install . \ | ||||||
|         -s build_type=Release \ |         -s build_type=Release \ | ||||||
|         -c tools.system.package_manager:mode=install \ |         -c tools.system.package_manager:mode=install \ | ||||||
|         -c tools.cmake.cmaketoolchain:generator=Ninja \ |         -c tools.cmake.cmaketoolchain:generator=Ninja \ | ||||||
|  |         -o use_mold=True \ | ||||||
|         --build=missing |         --build=missing | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue