diff --git a/.github/workflows/release-test.yml b/.github/workflows/release-test.yml index 1a316c17..30104826 100644 --- a/.github/workflows/release-test.yml +++ b/.github/workflows/release-test.yml @@ -19,7 +19,8 @@ jobs: - name: Remove large directories run: | df -h - rm -rf /opt/hostedtoolcache || true + cd /opt/hostedtoolcache + find . -mindepth 1 -maxdepth 1 -type d -not -name 'go' -exec rm -rf {} + df -h - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 diff --git a/bpf/btfgen.sh b/bpf/btfgen.sh index 6387ea4d..36a830a6 100755 --- a/bpf/btfgen.sh +++ b/bpf/btfgen.sh @@ -81,12 +81,11 @@ rsync -avz \ # generate tailored BTFs +[ ! -d ${BASEDIR}/bpf/custom-archive ] && mkdir -p ${BASEDIR}/bpf/custom-archive +rm -rf ${BASEDIR}/bpf/custom-archive/* || true + [ ! -f ./tools/btfgen.sh ] && die "could not find btfgen.sh" ./tools/btfgen.sh -a $1 -o ${KYANOS_BPF_CORE} - # move tailored BTFs to dist - -[ ! -d ${BASEDIR}/bpf/custom-archive ] && mkdir -p ${BASEDIR}/bpf/custom-archive -rm -rf ${BASEDIR}/bpf/custom-archive/* || true mv ./custom-archive/* ${BASEDIR}/bpf/custom-archive