feat: [skip e2e] effective way to use cache (#35232)

issue: https://github.com/milvus-io/milvus/issues/34876
https://github.com/milvus-io/milvus/pull/35109

Signed-off-by: Yellow Shine <sammy.huang@zilliz.com>
This commit is contained in:
yellow-shine 2024-08-06 10:12:26 +08:00 committed by GitHub
parent 8b5e02a464
commit 94bb687e6f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 19 additions and 3 deletions

View File

@ -52,7 +52,7 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Download Caches - name: Download Caches
uses: ./.github/actions/cache uses: ./.github/actions/cache-restore
with: with:
os: 'ubuntu22.04' os: 'ubuntu22.04'
- name: Code Check - name: Code Check
@ -60,6 +60,11 @@ jobs:
OS_NAME: 'ubuntu22.04' OS_NAME: 'ubuntu22.04'
run: | run: |
./build/builder.sh /bin/bash -c "make check-proto-product && make verifiers" ./build/builder.sh /bin/bash -c "make check-proto-product && make verifiers"
- name: Save Caches
uses: ./.github/actions/cache-save
if: github.event_name != 'pull_request'
with:
os: 'ubuntu22.04'
amazonlinux: amazonlinux:
if: ${{ false }} # skip for now if: ${{ false }} # skip for now
@ -80,13 +85,18 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Download Caches - name: Download Caches
uses: ./.github/actions/cache uses: ./.github/actions/cache-restore
with: with:
os: 'amazonlinux2023' os: 'amazonlinux2023'
- name: Code Check - name: Code Check
run: | run: |
sed -i 's/ubuntu22.04/amazonlinux2023/g' .env sed -i 's/ubuntu22.04/amazonlinux2023/g' .env
./build/builder.sh /bin/bash -c "make install" ./build/builder.sh /bin/bash -c "make install"
- name: Save Caches
uses: ./.github/actions/cache-save
if: github.event_name != 'pull_request'
with:
os: 'amazonlinux2023'
rockylinux: rockylinux:
if: ${{ false }} # skip for now if: ${{ false }} # skip for now
@ -107,10 +117,15 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Download Caches - name: Download Caches
uses: ./.github/actions/cache uses: ./.github/actions/cache-restore
with: with:
os: 'rockylinux8' os: 'rockylinux8'
- name: Code Check - name: Code Check
run: | run: |
sed -i 's/ubuntu22.04/rockylinux8/g' .env sed -i 's/ubuntu22.04/rockylinux8/g' .env
./build/builder.sh /bin/bash -c "make install" ./build/builder.sh /bin/bash -c "make install"
- name: Save Caches
uses: ./.github/actions/cache-save
if: github.event_name != 'pull_request'
with:
os: 'rockylinux8'

View File

@ -311,3 +311,4 @@ jobs:
name: ubuntu-20.04-unittests name: ubuntu-20.04-unittests
fail_ci_if_error: true fail_ci_if_error: true
disable_safe_directory: true disable_safe_directory: true