Skip to content

Commit

Permalink
change cache logic in kagome build step
Browse files Browse the repository at this point in the history
  • Loading branch information
qdrvm-ci committed Jun 25, 2024
1 parent 177e57c commit 7ed3426
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/zombie-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ jobs:
- name: "Cache dependencies"
if: env.package_exist == 'False'
uses: actions/cache@v4
id: cache-restore
uses: actions/cache/restore@v4
with:
path: ${{ env.CACHE_PATH }}
key: ${{ github.job }}-${{ env.CACHE_VERSION }}-${{ github.event.inputs.build_type }}
save-always: true

- name: "Build target"
if: env.package_exist == 'False'
Expand All @@ -94,6 +94,14 @@ 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 }}


Zombie-Tests:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -133,7 +141,7 @@ jobs:
run: |
free -h
df -h
sudo fallocate -l 4G /swapfile
sudo fallocate -l 8G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
Expand Down

0 comments on commit 7ed3426

Please sign in to comment.