Skip to content

Commit 26efc6d

Browse files
committed
fix build cache
1 parent 076ff2c commit 26efc6d

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/package.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,28 +52,31 @@ jobs:
5252
key: ${{ runner.os }}-libbpf
5353

5454
- name: install dependencies
55+
if: steps.cache-libbpf.outputs.cache-hit != 'true'
5556
run: |
5657
sudo apt update
5758
sudo apt install dpkg-dev debhelper libelf-dev
5859
5960
- name: build package
61+
if: steps.cache-libbpf.outputs.cache-hit != 'true'
6062
run: |
6163
git clone https://github.com/sudipm-mukherjee/libbpf
6264
cd libbpf
6365
dpkg-buildpackage -uc -us -b
6466
65-
- name: list build artifacts
66-
run: |
67-
ls -lah
68-
6967
- name: save libbpf
7068
id: cache-libbpf-save
69+
if: steps.cache-libbpf.outputs.cache-hit != 'true'
7170
uses: actions/cache/save@v4
7271
with:
7372
path: |
7473
libbpf*.deb
7574
key: ${{ steps.cache-libbpf.outputs.cache-primary-key }}
7675

76+
- name: list build artifacts
77+
run: |
78+
ls -lah
79+
7780
- name: upload package artifacts
7881
uses: actions/upload-artifact@v4
7982
with:

0 commit comments

Comments
 (0)