Skip to content

Commit

Permalink
try fix cache
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-sannikov committed Dec 13, 2023
1 parent 33ed74b commit d5e0479
Showing 1 changed file with 4 additions and 21 deletions.
25 changes: 4 additions & 21 deletions .github/workflows/build-module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,33 +23,16 @@ jobs:
ref: ${{ matrix.tag }}
fetch-depth: 0

- uses: actions/checkout@v4
with:
fetch-depth: 0
path: awg-openwrt

- name: Cache Tools and Kernel
id: cache-tools-kernel
uses: actions/cache@v3
env:
cache-name: "cache-tools-kernel-${{ matrix.tag }}-${{ matrix.build_env.pkgarch}}-${{ matrix.build_env.target}}-${{ matrix.build_env.subtarget}}"
with:
path: |
~/bin/
~/build_dir/
~/staging_dir/
~/dl/
~/feeds/
~/staging_dir/
~/tmp/
~/config
~/.config
~/.config.old
~/version
~/version.date
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('awg-openwrt/version.date') }}

path: .
key: ${{ runner.os }}-build-${{ env.cache-name }}
restore-keys: |
${{ runner.os }}-build-
- name: Building kernel and tools
if: ${{ steps.cache-tools-kernel.outputs.cache-hit != 'true' }}
Expand Down

0 comments on commit d5e0479

Please sign in to comment.