mirror of
				https://github.com/rust-lang/rust-analyzer.git
				synced 2025-10-31 03:54:42 +00:00 
			
		
		
		
	Merge pull request #19600 from Kobzol/pin-proc-macro-rustc
Pin rustc used for the `proc-macro-src` CI job
This commit is contained in:
		
						commit
						b75b78b9d9
					
				
					 1 changed files with 13 additions and 5 deletions
				
			
		
							
								
								
									
										18
									
								
								.github/workflows/ci.yaml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										18
									
								
								.github/workflows/ci.yaml
									
										
									
									
										vendored
									
									
								
							|  | @ -46,17 +46,25 @@ jobs: | ||||||
|         with: |         with: | ||||||
|           ref: ${{ github.event.pull_request.head.sha }} |           ref: ${{ github.event.pull_request.head.sha }} | ||||||
| 
 | 
 | ||||||
|  |       - name: Install rustup-toolchain-install-master | ||||||
|  |         run: cargo install rustup-toolchain-install-master@1.6.0 | ||||||
|  | 
 | ||||||
|  |       # Install a pinned rustc commit to avoid surprises | ||||||
|       - name: Install Rust toolchain |       - name: Install Rust toolchain | ||||||
|         run: | |         run: | | ||||||
|           rustup update --no-self-update nightly |           RUSTC_VERSION=`cat rust-version` | ||||||
|           rustup default nightly |           rustup-toolchain-install-master ${RUSTC_VERSION} -c rust-src -c rustfmt | ||||||
|           rustup component add --toolchain nightly rust-src rustfmt |           rustup default ${RUSTC_VERSION} | ||||||
|  | 
 | ||||||
|  |       # Emulate a nightly toolchain, because the toolchain installed above does not have "nightly" | ||||||
|  |       # in its version string. | ||||||
|  |       - name: Emulate a nightly toolchain | ||||||
|  |         run: echo "RUSTC_BOOTSTRAP=1" >> $GITHUB_ENV | ||||||
|  | 
 | ||||||
|       # https://github.com/actions-rust-lang/setup-rust-toolchain/blob/main/rust.json |       # https://github.com/actions-rust-lang/setup-rust-toolchain/blob/main/rust.json | ||||||
|       - name: Install Rust Problem Matcher |       - name: Install Rust Problem Matcher | ||||||
|         run: echo "::add-matcher::.github/rust.json" |         run: echo "::add-matcher::.github/rust.json" | ||||||
| 
 | 
 | ||||||
|       # We don't cache this job, as it will be invalidated every day due to nightly usage |  | ||||||
| 
 |  | ||||||
|       - name: Test |       - name: Test | ||||||
|         run: cargo test --features sysroot-abi -p proc-macro-srv -p proc-macro-srv-cli -p proc-macro-api -- --quiet |         run: cargo test --features sysroot-abi -p proc-macro-srv -p proc-macro-srv-cli -p proc-macro-api -- --quiet | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lukas Wirth
						Lukas Wirth