mirror of
				https://github.com/searxng/searxng.git
				synced 2025-11-04 03:27:06 -05:00 
			
		
		
		
	GH workflow: use actions/cache@v3
Also cache ./.nvm and ./node_modules
This commit is contained in:
		
							parent
							
								
									bc1278d25e
								
							
						
					
					
						commit
						46aaa57cfe
					
				
							
								
								
									
										43
									
								
								.github/workflows/integration.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										43
									
								
								.github/workflows/integration.yml
									
									
									
									
										vendored
									
									
								
							@ -28,9 +28,12 @@ jobs:
 | 
				
			|||||||
        architecture: 'x64'
 | 
					        architecture: 'x64'
 | 
				
			||||||
    - name: Cache Python dependencies
 | 
					    - name: Cache Python dependencies
 | 
				
			||||||
      id: cache-python
 | 
					      id: cache-python
 | 
				
			||||||
      uses: actions/cache@v2
 | 
					      uses: actions/cache@v3
 | 
				
			||||||
      with:
 | 
					      with:
 | 
				
			||||||
        path: ./local
 | 
					        path: |
 | 
				
			||||||
 | 
					          ./local
 | 
				
			||||||
 | 
					          ./.nvm
 | 
				
			||||||
 | 
					          ./node_modules
 | 
				
			||||||
        key: python-${{ matrix.os }}-${{ matrix.python-version }}-${{ hashFiles('requirements*.txt', 'setup.py') }}
 | 
					        key: python-${{ matrix.os }}-${{ matrix.python-version }}-${{ hashFiles('requirements*.txt', 'setup.py') }}
 | 
				
			||||||
    - name: Install Python dependencies
 | 
					    - name: Install Python dependencies
 | 
				
			||||||
      if: steps.cache-python.outputs.cache-hit != 'true'
 | 
					      if: steps.cache-python.outputs.cache-hit != 'true'
 | 
				
			||||||
@ -63,10 +66,13 @@ jobs:
 | 
				
			|||||||
        architecture: 'x64'
 | 
					        architecture: 'x64'
 | 
				
			||||||
    - name: Cache Python dependencies
 | 
					    - name: Cache Python dependencies
 | 
				
			||||||
      id: cache-python
 | 
					      id: cache-python
 | 
				
			||||||
      uses: actions/cache@v2
 | 
					      uses: actions/cache@v3
 | 
				
			||||||
      with:
 | 
					      with:
 | 
				
			||||||
        path: ./local
 | 
					        path: |
 | 
				
			||||||
        key: python-ubuntu-20.04-3.9-${{ hashFiles('requirements*.txt', 'setup.py') }}
 | 
					          ./local
 | 
				
			||||||
 | 
					          ./.nvm
 | 
				
			||||||
 | 
					          ./node_modules
 | 
				
			||||||
 | 
					        key: python-ubuntu-20.04-3.9-${{ hashFiles('requirements*.txt', 'setup.py','.nvmrc', 'package.json') }}
 | 
				
			||||||
    - name: Install node dependencies
 | 
					    - name: Install node dependencies
 | 
				
			||||||
      run: make V=1 node.env
 | 
					      run: make V=1 node.env
 | 
				
			||||||
    - name: Build themes
 | 
					    - name: Build themes
 | 
				
			||||||
@ -90,10 +96,13 @@ jobs:
 | 
				
			|||||||
        architecture: 'x64'
 | 
					        architecture: 'x64'
 | 
				
			||||||
    - name: Cache Python dependencies
 | 
					    - name: Cache Python dependencies
 | 
				
			||||||
      id: cache-python
 | 
					      id: cache-python
 | 
				
			||||||
      uses: actions/cache@v2
 | 
					      uses: actions/cache@v3
 | 
				
			||||||
      with:
 | 
					      with:
 | 
				
			||||||
        path: ./local
 | 
					        path: |
 | 
				
			||||||
        key: python-ubuntu-20.04-3.9-${{ hashFiles('requirements*.txt', 'setup.py') }}
 | 
					          ./local
 | 
				
			||||||
 | 
					          ./.nvm
 | 
				
			||||||
 | 
					          ./node_modules
 | 
				
			||||||
 | 
					        key: python-ubuntu-20.04-3.9-${{ hashFiles('requirements*.txt', 'setup.py','.nvmrc', 'package.json') }}
 | 
				
			||||||
    - name: Build documentation
 | 
					    - name: Build documentation
 | 
				
			||||||
      run: |
 | 
					      run: |
 | 
				
			||||||
        make V=1 docs.clean docs.html
 | 
					        make V=1 docs.clean docs.html
 | 
				
			||||||
@ -129,10 +138,13 @@ jobs:
 | 
				
			|||||||
        architecture: 'x64'
 | 
					        architecture: 'x64'
 | 
				
			||||||
    - name: Cache Python dependencies
 | 
					    - name: Cache Python dependencies
 | 
				
			||||||
      id: cache-python
 | 
					      id: cache-python
 | 
				
			||||||
      uses: actions/cache@v2
 | 
					      uses: actions/cache@v3
 | 
				
			||||||
      with:
 | 
					      with:
 | 
				
			||||||
        path: ./local
 | 
					        path: |
 | 
				
			||||||
        key: python-ubuntu-20.04-3.9-${{ hashFiles('requirements*.txt', 'setup.py') }}
 | 
					          ./local
 | 
				
			||||||
 | 
					          ./.nvm
 | 
				
			||||||
 | 
					          ./node_modules
 | 
				
			||||||
 | 
					        key: python-ubuntu-20.04-3.9-${{ hashFiles('requirements*.txt', 'setup.py','.nvmrc', 'package.json') }}
 | 
				
			||||||
    - name: weblate & git setup
 | 
					    - name: weblate & git setup
 | 
				
			||||||
      env:
 | 
					      env:
 | 
				
			||||||
        WEBLATE_CONFIG: ${{ secrets.WEBLATE_CONFIG }}
 | 
					        WEBLATE_CONFIG: ${{ secrets.WEBLATE_CONFIG }}
 | 
				
			||||||
@ -171,10 +183,13 @@ jobs:
 | 
				
			|||||||
          architecture: 'x64'
 | 
					          architecture: 'x64'
 | 
				
			||||||
      - name: Cache Python dependencies
 | 
					      - name: Cache Python dependencies
 | 
				
			||||||
        id: cache-python
 | 
					        id: cache-python
 | 
				
			||||||
        uses: actions/cache@v2
 | 
					        uses: actions/cache@v3
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          path: ./local
 | 
					          path: |
 | 
				
			||||||
          key: python-ubuntu-20.04-3.9-${{ hashFiles('requirements*.txt', 'setup.py') }}
 | 
					            ./local
 | 
				
			||||||
 | 
					            ./.nvm
 | 
				
			||||||
 | 
					            ./node_modules
 | 
				
			||||||
 | 
					          key: python-ubuntu-20.04-3.9-${{ hashFiles('requirements*.txt', 'setup.py','.nvmrc', 'package.json') }}
 | 
				
			||||||
      - name: Set up QEMU
 | 
					      - name: Set up QEMU
 | 
				
			||||||
        if: env.DOCKERHUB_USERNAME != null
 | 
					        if: env.DOCKERHUB_USERNAME != null
 | 
				
			||||||
        uses: docker/setup-qemu-action@v1
 | 
					        uses: docker/setup-qemu-action@v1
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										9
									
								
								.github/workflows/translations-update.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								.github/workflows/translations-update.yml
									
									
									
									
										vendored
									
									
								
							@ -22,10 +22,13 @@ jobs:
 | 
				
			|||||||
        architecture: 'x64'
 | 
					        architecture: 'x64'
 | 
				
			||||||
    - name: Cache Python dependencies
 | 
					    - name: Cache Python dependencies
 | 
				
			||||||
      id: cache-python
 | 
					      id: cache-python
 | 
				
			||||||
      uses: actions/cache@v2
 | 
					      uses: actions/cache@v3
 | 
				
			||||||
      with:
 | 
					      with:
 | 
				
			||||||
        path: ./local
 | 
					        path: |
 | 
				
			||||||
        key: python-ubuntu-20.04-3.9-${{ hashFiles('requirements*.txt', 'setup.py') }}
 | 
					          ./local
 | 
				
			||||||
 | 
					          ./.nvm
 | 
				
			||||||
 | 
					          ./node_modules
 | 
				
			||||||
 | 
					        key: python-ubuntu-20.04-3.9-${{ hashFiles('requirements*.txt', 'setup.py','.nvmrc', 'package.json') }}
 | 
				
			||||||
    - name: weblate & git setup
 | 
					    - name: weblate & git setup
 | 
				
			||||||
      env:
 | 
					      env:
 | 
				
			||||||
        WEBLATE_CONFIG: ${{ secrets.WEBLATE_CONFIG }}
 | 
					        WEBLATE_CONFIG: ${{ secrets.WEBLATE_CONFIG }}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user