Skip to content

Commit 076ff2c

Browse files
committed
add build cache
1 parent ed3d0bc commit 076ff2c

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

.github/workflows/package.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@ jobs:
4242
build_libbpf:
4343
runs-on: ubuntu-22.04
4444
steps:
45+
46+
- name: Restore cached libbpf
47+
id: cache-libbpf
48+
uses: actions/cache/restore@v4
49+
with:
50+
path: |
51+
libbpf*.deb
52+
key: ${{ runner.os }}-libbpf
53+
4554
- name: install dependencies
4655
run: |
4756
sudo apt update
@@ -52,10 +61,19 @@ jobs:
5261
git clone https://github.com/sudipm-mukherjee/libbpf
5362
cd libbpf
5463
dpkg-buildpackage -uc -us -b
55-
56-
- run: |
64+
65+
- name: list build artifacts
66+
run: |
5767
ls -lah
5868
69+
- name: save libbpf
70+
id: cache-libbpf-save
71+
uses: actions/cache/save@v4
72+
with:
73+
path: |
74+
libbpf*.deb
75+
key: ${{ steps.cache-libbpf.outputs.cache-primary-key }}
76+
5977
- name: upload package artifacts
6078
uses: actions/upload-artifact@v4
6179
with:

0 commit comments

Comments
 (0)