Skip to content

Commit

Permalink
return github cache save
Browse files Browse the repository at this point in the history
  • Loading branch information
qdrvm-ci committed Jul 9, 2024
1 parent e93c413 commit 57f4359
Showing 1 changed file with 10 additions and 20 deletions.
30 changes: 10 additions & 20 deletions .github/workflows/zombie-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,22 +72,12 @@ jobs:
- name: "Cache dependencies"
if: env.package_exist == 'False'
id: cache-restore
uses: pass-culture-github-actions/gcs-cache@a15865adf837a570fa52671cab4d83baad2aceab
uses: actions/cache/restore@v4
with:
bucket: ci-cache-kagome
path: ${{ env.CACHE_PATH }}
key: ${{ github.job }}-${{ runner.os }}-${{ env.CACHE_VERSION }}-${{ env.short_commit_hash }}
key: ${{ github.job }}-${{ env.CACHE_VERSION }}-${{ github.event.inputs.build_type }}-${{ env.short_commit_hash }}
restore-keys: |
${{ github.job }}-${{ runner.os }}-${{ env.CACHE_VERSION }}-
# if: env.package_exist == 'False'
# id: cache-restore
# uses: actions/cache/restore@v4
# with:
# path: ${{ env.CACHE_PATH }}
# key: ${{ github.job }}-${{ env.CACHE_VERSION }}-${{ github.event.inputs.build_type }}-${{ env.short_commit_hash }}
# restore-keys: |
# ${{ github.job }}-${{ env.CACHE_VERSION }}-${{ github.event.inputs.build_type }}-
${{ github.job }}-${{ env.CACHE_VERSION }}-${{ github.event.inputs.build_type }}-
- name: "Build target"
if: env.package_exist == 'False'
Expand All @@ -106,13 +96,13 @@ jobs:
make upload_apt_package \
BUILD_TYPE=${{ github.event.inputs.build_type }}
# - name: "Always Save Cache"
# id: cache-save
# if: always() && (steps.cache-restore.outputs.cache-hit != 'true' || env.package_exist != 'True')
# uses: actions/cache/save@v4
# with:
# path: ${{ env.CACHE_PATH }}
# key: ${{ steps.cache-restore.outputs.cache-primary-key }}
- name: "Always Save Cache"
id: cache-save
if: always() && (steps.cache-restore.outputs.cache-hit != 'true' || env.package_exist != 'True')
uses: actions/cache/save@v4
with:
path: ${{ env.CACHE_PATH }}
key: ${{ steps.cache-restore.outputs.cache-primary-key }}


Zombie-Tests:
Expand Down

0 comments on commit 57f4359

Please sign in to comment.