Skip to content

Commit

Permalink
fix(ci)
Browse files Browse the repository at this point in the history
  • Loading branch information
hengyoush committed Oct 19, 2024
1 parent c1ab519 commit b87ec7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/release-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
7 changes: 3 additions & 4 deletions bpf/btfgen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b87ec7e

Please sign in to comment.