Skip to content

Commit

Permalink
chore(ci): actually test that caching works in test.yml.
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Di Pierro <[email protected]>
  • Loading branch information
FedeDP authored and alexellis committed May 8, 2024
1 parent 927cd6a commit a59b23a
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,20 @@ jobs:
- name: Echo kernelrelease
run: uname -a

- name: Store KERNEL_RELEASE
shell: bash
run: |
echo "KERNEL_RELEASE=$(uname -r)" >> $GITHUB_ENV
- name: Check kernel sources (empty)
run: ls -la /usr/src
run: ls -la /usr/src

- name: Test subsequent cached call
uses: ./
- name: Retrieve cached kernel sources
uses: actions/cache@v4
with:
cache: 'true'
path: |
/usr/src/linux
key: ${{ runner.os }}-${{ runner.arch }}-${{env.KERNEL_RELEASE}}

- name: Check kernel sources again
run: ls -la /usr/src
run: ls -la /usr/src

0 comments on commit a59b23a

Please sign in to comment.