mirror of
				https://github.com/Swatinem/rust-cache
				synced 2025-11-03 22:19:10 +00:00 
			
		
		
		
	Add BuildJet Option (#154)
This commit is contained in:
		
							parent
							
								
									9de8f90afb
								
							
						
					
					
						commit
						b00faf5858
					
				
					 10 changed files with 5501 additions and 24 deletions
				
			
		
							
								
								
									
										30
									
								
								.github/workflows/simple.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										30
									
								
								.github/workflows/simple.yml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -29,3 +29,33 @@ jobs:
 | 
			
		|||
          cargo test
 | 
			
		||||
          cargo build --release
 | 
			
		||||
        working-directory: tests
 | 
			
		||||
  simple-buildjet:
 | 
			
		||||
    strategy:
 | 
			
		||||
      fail-fast: false
 | 
			
		||||
      matrix:
 | 
			
		||||
        os: [ubuntu-latest, macos-latest, windows-latest]
 | 
			
		||||
 | 
			
		||||
    name: Test `cargo check/test` on ${{ matrix.os }}
 | 
			
		||||
    runs-on: ${{ matrix.os }}
 | 
			
		||||
 | 
			
		||||
    env:
 | 
			
		||||
      CARGO_TERM_COLOR: always
 | 
			
		||||
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: actions/checkout@v3
 | 
			
		||||
 | 
			
		||||
      # When rustup is updated, it tries to replace its binary, which on Windows is somehow locked.
 | 
			
		||||
      # This can result in the CI failure, see: https://github.com/rust-lang/rustup/issues/3029
 | 
			
		||||
      - run: |
 | 
			
		||||
          rustup set auto-self-update disable
 | 
			
		||||
          rustup toolchain install stable --profile minimal
 | 
			
		||||
 | 
			
		||||
      - uses: ./
 | 
			
		||||
        with:
 | 
			
		||||
          workspaces: tests
 | 
			
		||||
          cache-provider: buildjet
 | 
			
		||||
 | 
			
		||||
      - run: |
 | 
			
		||||
          cargo check
 | 
			
		||||
          cargo test
 | 
			
		||||
        working-directory: tests
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue