Skip to content

Commit

Permalink
run-vmtest: change allow/denylist handling
Browse files Browse the repository at this point in the history
  • Loading branch information
theihor committed Jan 9, 2025
1 parent 835e83e commit cf9969d
Show file tree
Hide file tree
Showing 6 changed files with 909 additions and 133 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/kernel-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ jobs:

- if: ${{ env.BUILD_BPF_GCC }}
name: Build GCC for BPF selftests
uses: theihor/libbpf-ci/build-bpf-gcc@bpf-gcc
uses: ./build-bpf-gcc
with:
install-dir: ${{ env.BPF_GCC_INSTALL_DIR }}

Expand Down
14 changes: 9 additions & 5 deletions build-bpf-gcc/build-and-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ else
exit 1
fi

test -f $BINUTILS_TARBALL || wget $BINUTILS_URL
test -f $GCC_TARBALL || wget $GCC_URL
foldable start download_tarballs "Downloading $BINUTILS_URL and $GCC_URL"

test -f $BINUTILS_TARBALL || wget -q $BINUTILS_URL
test -f $GCC_TARBALL || wget -q $GCC_URL

foldable end download_tarballs

foldable start build_binutils "Building $BINUTILS_BASENAME"

Expand All @@ -27,7 +31,7 @@ if [ ! -f "${INSTALLDIR}/${BINUTILS_BASENAME}.built" ]; then
cd -
fi

foldable end build_binutils "Building $BINUTILS_BASENAME"
foldable end build_binutils

foldable start build_gcc "Building $GCC_BASENAME"

Expand All @@ -39,11 +43,11 @@ if [ ! -f "${INSTALLDIR}/${GCC_BASENAME}.built" ]; then
mkdir -p ${GCC_BASENAME}/build-bpf
cd ${GCC_BASENAME}/build-bpf
../configure --target=bpf-unknown-none --prefix=$INSTALLDIR
make -j $(nproc) && make install
make -j$(nproc) && make install
touch ${INSTALLDIR}/${GCC_BASENAME}.built
cd -
fi

foldable end build_gcc "Building $GCC_BASENAME"
foldable end build_gcc

exit 0
Loading

0 comments on commit cf9969d

Please sign in to comment.