Skip to content

Commit 913482e

Browse files
ci: fix cache actions in workflow
- Update actions/cache to v4.2.3. - Remove .ccache before packaging. Signed-off-by: Nagendra T P <[email protected]>
1 parent 36e961c commit 913482e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/build-cn10k.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
run: |
2929
echo 'ccache=ccache-'$(date -u +%Y-m%M) >> $GITHUB_OUTPUT
3030
- name: Retrieve ccache cache
31-
uses: actions/cache@v4
31+
uses: actions/cache@v4.2.3
3232
with:
3333
path: ~/.ccache
3434
key: ${{ steps.get_ref_keys.outputs.ccache }}-${{ github.ref }}
@@ -137,6 +137,7 @@ jobs:
137137
echo "Homepage: https://wiki.fd.io/view/VPP" >> DEBIAN/control
138138
echo "Description: Vector Packet Processing (VPP) for Octeon10" >> DEBIAN/control
139139
cd -
140+
rm -rf "${PWD}/install/~" "${PWD}/install/home"
140141
mv "${PWD}/install" "${PWD}/vpp-${PKG_VERSION_NAME}-cn10k${PKG_POSTFIX}_${MRVL_PKG_VERSION}_arm64"
141142
dpkg --build "vpp-${PKG_VERSION_NAME}-cn10k${PKG_POSTFIX}_${MRVL_PKG_VERSION}_arm64"
142143
cp "vpp-${PKG_VERSION_NAME}-cn10k${PKG_POSTFIX}_${MRVL_PKG_VERSION}_arm64.deb" ${BASE_DIR}/artifacts/.

.github/workflows/build-cn9k.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
run: |
2828
echo 'ccache=ccache-'$(date -u +%Y-m%M) >> $GITHUB_OUTPUT
2929
- name: Retrieve ccache cache
30-
uses: actions/cache@v4
30+
uses: actions/cache@v4.2.3
3131
with:
3232
path: ~/.ccache
3333
key: ${{ steps.get_ref_keys.outputs.ccache }}-${{ github.ref }}
@@ -141,6 +141,7 @@ jobs:
141141
echo "Homepage: https://wiki.fd.io/view/VPP" >> DEBIAN/control
142142
echo "Description: Vector Packet Processing (VPP) for Octeon9" >> DEBIAN/control
143143
cd -
144+
rm -rf "${PWD}/install/~" "${PWD}/install/home"
144145
mv "${PWD}/install" "${PWD}/vpp-${PKG_VERSION_NAME}-cn9k${PKG_POSTFIX}_${MRVL_PKG_VERSION}_arm64"
145146
dpkg --build "vpp-${PKG_VERSION_NAME}-cn9k${PKG_POSTFIX}_${MRVL_PKG_VERSION}_arm64"
146147
cp "vpp-${PKG_VERSION_NAME}-cn9k${PKG_POSTFIX}_${MRVL_PKG_VERSION}_arm64.deb" ${BASE_DIR}/artifacts/.

0 commit comments

Comments
 (0)