mirror of
				https://github.com/rust-lang/rust-analyzer.git
				synced 2025-10-31 03:54:42 +00:00 
			
		
		
		
	ci: run intern tests via cargo miri
				
					
				
			This commit is contained in:
		
							parent
							
								
									3ed13b4a91
								
							
						
					
					
						commit
						c96421ecf4
					
				
					 2 changed files with 21 additions and 2 deletions
				
			
		
							
								
								
									
										22
									
								
								.github/workflows/ci.yaml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										22
									
								
								.github/workflows/ci.yaml
									
										
									
									
										vendored
									
									
								
							|  | @ -143,13 +143,33 @@ jobs: | ||||||
|         run: target/${{ matrix.target }}/debug/rust-analyzer analysis-stats --with-deps --no-sysroot --no-test $(rustc --print sysroot)/lib/rustlib/src/rust/library/ |         run: target/${{ matrix.target }}/debug/rust-analyzer analysis-stats --with-deps --no-sysroot --no-test $(rustc --print sysroot)/lib/rustlib/src/rust/library/ | ||||||
| 
 | 
 | ||||||
|       - name: clippy |       - name: clippy | ||||||
|         if: matrix.os == 'windows-latest' |         if: matrix.os == 'macos-latest' | ||||||
|         run: cargo clippy --all-targets -- -D clippy::disallowed_macros -D clippy::dbg_macro -D clippy::todo -D clippy::print_stdout -D clippy::print_stderr |         run: cargo clippy --all-targets -- -D clippy::disallowed_macros -D clippy::dbg_macro -D clippy::todo -D clippy::print_stdout -D clippy::print_stderr | ||||||
| 
 | 
 | ||||||
|       - name: rustfmt |       - name: rustfmt | ||||||
|         if: matrix.os == 'ubuntu-latest' |         if: matrix.os == 'ubuntu-latest' | ||||||
|         run: cargo fmt -- --check |         run: cargo fmt -- --check | ||||||
| 
 | 
 | ||||||
|  |   # Weird targets to catch non-portable code | ||||||
|  |   miri: | ||||||
|  |     if: github.repository == 'rust-lang/rust-analyzer' | ||||||
|  |     name: miri | ||||||
|  |     runs-on: ubuntu-latest | ||||||
|  | 
 | ||||||
|  |     steps: | ||||||
|  |       - name: Checkout repository | ||||||
|  |         uses: actions/checkout@v4 | ||||||
|  | 
 | ||||||
|  |       - name: Install Rust toolchain | ||||||
|  |         run: | | ||||||
|  |           rustup update --no-self-update nightly | ||||||
|  |           rustup component add miri --toolchain nightly | ||||||
|  | 
 | ||||||
|  |       - name: Cache Dependencies | ||||||
|  |         uses: Swatinem/rust-cache@9bdad043e88c75890e36ad3bbc8d27f0090dd609 | ||||||
|  | 
 | ||||||
|  |       - run: cargo +nightly miri test --locked | ||||||
|  | 
 | ||||||
|   # Weird targets to catch non-portable code |   # Weird targets to catch non-portable code | ||||||
|   rust-cross: |   rust-cross: | ||||||
|     if: github.repository == 'rust-lang/rust-analyzer' |     if: github.repository == 'rust-lang/rust-analyzer' | ||||||
|  |  | ||||||
|  | @ -13,7 +13,6 @@ rust-version.workspace = true | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| [dependencies] | [dependencies] | ||||||
| # We need to freeze the version of the crate, as the raw-api feature is considered unstable |  | ||||||
| dashmap.workspace = true | dashmap.workspace = true | ||||||
| hashbrown.workspace = true | hashbrown.workspace = true | ||||||
| rustc-hash.workspace = true | rustc-hash.workspace = true | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lukas Wirth
						Lukas Wirth