mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-11-04 01:46:28 +00:00 
			
		
		
		
	Update the CI to take the rust-toolchain file into account
This commit is contained in:
		
							
								
								
									
										17
									
								
								.github/workflows/test-suite.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										17
									
								
								.github/workflows/test-suite.yml
									
									
									
									
										vendored
									
									
								
							@@ -32,9 +32,6 @@ jobs:
 | 
			
		||||
          apt-get install build-essential -y
 | 
			
		||||
      - name: Setup test with Rust stable
 | 
			
		||||
        uses: actions-rs/toolchain@v1
 | 
			
		||||
        with:
 | 
			
		||||
          toolchain: stable
 | 
			
		||||
          override: true
 | 
			
		||||
      - name: Cache dependencies
 | 
			
		||||
        uses: Swatinem/rust-cache@v2.7.1
 | 
			
		||||
      - name: Run cargo check without any default features
 | 
			
		||||
@@ -60,9 +57,6 @@ jobs:
 | 
			
		||||
      - name: Cache dependencies
 | 
			
		||||
        uses: Swatinem/rust-cache@v2.7.1
 | 
			
		||||
      - uses: actions-rs/toolchain@v1
 | 
			
		||||
        with:
 | 
			
		||||
          toolchain: stable
 | 
			
		||||
          override: true
 | 
			
		||||
      - name: Run cargo check without any default features
 | 
			
		||||
        uses: actions-rs/cargo@v1
 | 
			
		||||
        with:
 | 
			
		||||
@@ -88,9 +82,6 @@ jobs:
 | 
			
		||||
          apt-get update
 | 
			
		||||
          apt-get install --assume-yes build-essential curl
 | 
			
		||||
      - uses: actions-rs/toolchain@v1
 | 
			
		||||
        with:
 | 
			
		||||
          toolchain: stable
 | 
			
		||||
          override: true
 | 
			
		||||
      - name: Run cargo build with almost all features
 | 
			
		||||
        run: |
 | 
			
		||||
          cargo build --workspace --locked --release --features "$(cargo xtask list-features --exclude-feature cuda)"
 | 
			
		||||
@@ -111,9 +102,6 @@ jobs:
 | 
			
		||||
          apt-get update
 | 
			
		||||
          apt-get install --assume-yes build-essential curl
 | 
			
		||||
      - uses: actions-rs/toolchain@v1
 | 
			
		||||
        with:
 | 
			
		||||
          toolchain: stable
 | 
			
		||||
          override: true
 | 
			
		||||
      - name: Run cargo tree without default features and check lindera is not present
 | 
			
		||||
        run: |
 | 
			
		||||
          if cargo tree -f '{p} {f}' -e normal --no-default-features | grep -vqz lindera; then
 | 
			
		||||
@@ -138,9 +126,6 @@ jobs:
 | 
			
		||||
          apt-get update && apt-get install -y curl
 | 
			
		||||
          apt-get install build-essential -y
 | 
			
		||||
      - uses: actions-rs/toolchain@v1
 | 
			
		||||
        with:
 | 
			
		||||
          toolchain: stable
 | 
			
		||||
          override: true
 | 
			
		||||
      - name: Cache dependencies
 | 
			
		||||
        uses: Swatinem/rust-cache@v2.7.1
 | 
			
		||||
      - name: Run tests in debug
 | 
			
		||||
@@ -176,7 +161,7 @@ jobs:
 | 
			
		||||
      - uses: actions-rs/toolchain@v1
 | 
			
		||||
        with:
 | 
			
		||||
          profile: minimal
 | 
			
		||||
          toolchain: nightly
 | 
			
		||||
          toolchain: nightly-2024-06-25
 | 
			
		||||
          override: true
 | 
			
		||||
          components: rustfmt
 | 
			
		||||
      - name: Cache dependencies
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user