diff options
author | Alexandre Flament <alex@al-f.net> | 2021-12-24 08:30:27 +0100 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2022-01-05 20:59:59 +0100 |
commit | 1f7059e040778f21edba669c9c08f3c89dd9a746 (patch) | |
tree | 44d832bc5f161964a16b6e537242da9de4d44b11 | |
parent | 0ebad8220fe574c690d113d7e9d6a85f5ac16616 (diff) | |
download | searxng-1f7059e040778f21edba669c9c08f3c89dd9a746.tar.gz searxng-1f7059e040778f21edba669c9c08f3c89dd9a746.zip |
[mod] GitHub workflow: use cache
-rw-r--r-- | .github/workflows/integration.yml | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 4e1f59a38..ea9dc0972 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -56,6 +56,17 @@ jobs: uses: actions/checkout@v2 - name: Install Ubuntu packages run: sudo ./utils/searx.sh install buildhost + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.9' + architecture: 'x64' + - name: Cache Python dependencies + id: cache-python + uses: actions/cache@v2 + with: + path: ./local + key: python-ubuntu-20.04-3.9-${{ hashFiles('requirements*.txt', 'setup.py') }} - name: Install node dependencies run: make V=1 node.env - name: Build themes @@ -68,6 +79,7 @@ jobs: - name: Checkout uses: actions/checkout@v2 with: + fetch-depth: '0' persist-credentials: false - name: Install Ubuntu packages run: sudo ./utils/searx.sh install buildhost @@ -76,6 +88,12 @@ jobs: with: python-version: '3.9' architecture: 'x64' + - name: Cache Python dependencies + id: cache-python + uses: actions/cache@v2 + with: + path: ./local + key: python-ubuntu-20.04-3.9-${{ hashFiles('requirements*.txt', 'setup.py') }} - name: Build documentation run: | make V=1 docs.clean docs.html @@ -138,7 +156,7 @@ jobs: - documentation env: DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} - runs-on: ubuntu-18.04 + runs-on: ubuntu-20.04 steps: - name: Checkout if: env.DOCKERHUB_USERNAME != null @@ -151,6 +169,12 @@ jobs: with: python-version: '3.9' architecture: 'x64' + - name: Cache Python dependencies + id: cache-python + uses: actions/cache@v2 + with: + path: ./local + key: python-ubuntu-20.04-3.9-${{ hashFiles('requirements*.txt', 'setup.py') }} - name: Set up QEMU if: env.DOCKERHUB_USERNAME != null uses: docker/setup-qemu-action@v1 |