Merge pull request #8194 from fidencio/topic/CC-do-not-use-cache-when-building-the-payload

CC | payload-after-push: Bypass cache
This commit is contained in:
Fabiano Fidêncio
2023-10-10 12:35:12 +02:00
committed by GitHub
2 changed files with 5 additions and 5 deletions

View File

@@ -47,7 +47,7 @@ jobs:
fetch-depth: 0 # This is needed in order to keep the commit ids history
- name: Build ${{ matrix.asset }}
run: |
make "${KATA_ASSET}-tarball"
USE_CACHE="no" make "${KATA_ASSET}-tarball"
build_dir=$(readlink -f build)
# store-artifact does not work with symlink
sudo cp -r "${build_dir}" "kata-build"
@@ -108,7 +108,7 @@ jobs:
- name: Build cc-shim-v2
run: |
make cc-shim-v2-tarball
USE_CACHE="no" make cc-shim-v2-tarball
build_dir=$(readlink -f build)
# store-artifact does not work with symlink
sudo cp -r "${build_dir}" "kata-build"

View File

@@ -40,7 +40,7 @@ jobs:
- name: Build ${{ matrix.asset }}
run: |
make "${KATA_ASSET}-tarball"
USE_CACHE="no" make "${KATA_ASSET}-tarball"
build_dir=$(readlink -f build)
# store-artifact does not work with symlink
sudo cp -r "${build_dir}" "kata-build"
@@ -92,7 +92,7 @@ jobs:
- name: Build cc-shim-v2
run: |
make cc-shim-v2-tarball
USE_CACHE="no" make cc-shim-v2-tarball
build_dir=$(readlink -f build)
# store-artifact does not work with symlink
sudo cp -r "${build_dir}" "kata-build"
@@ -138,7 +138,7 @@ jobs:
# Skip building dependant artifacts of cc-se-image-tarball
# because we already have them from the previous build
sed -i 's/\(^cc-se-image-tarball:\).*/\1/g' ${base_dir}/Makefile
make cc-se-image-tarball
USE_CACHE="no" make cc-se-image-tarball
build_dir=$(readlink -f build)
sudo cp -r "${build_dir}" "kata-build"
sudo chown -R $(id -u):$(id -g) "kata-build"