mirror of
https://github.com/netdata/libbpf.git
synced 2026-03-21 00:39:07 +08:00
Use foldable helpers where applicable
As discussed at some earlier point in time, some of the actions/workflow logic does not use our foldable helpers despite being able to. Switch them over. Signed-off-by: Daniel Müller <deso@posteo.net>
This commit is contained in:
committed by
danielocfb
parent
a0325403af
commit
cfbd763ef8
5
.github/actions/build-selftests/action.yml
vendored
5
.github/actions/build-selftests/action.yml
vendored
@@ -18,9 +18,10 @@ runs:
|
|||||||
steps:
|
steps:
|
||||||
- shell: bash
|
- shell: bash
|
||||||
run: |
|
run: |
|
||||||
echo "::group::Setup Env"
|
source $GITHUB_ACTION_PATH/../../../ci/vmtest/helpers.sh
|
||||||
|
foldable start "Setup Env"
|
||||||
sudo apt-get install -y qemu-kvm zstd binutils-dev elfutils libcap-dev libelf-dev libdw-dev python3-docutils
|
sudo apt-get install -y qemu-kvm zstd binutils-dev elfutils libcap-dev libelf-dev libdw-dev python3-docutils
|
||||||
echo "::endgroup::"
|
foldable end
|
||||||
- shell: bash
|
- shell: bash
|
||||||
run: |
|
run: |
|
||||||
export KERNEL=${{ inputs.kernel }}
|
export KERNEL=${{ inputs.kernel }}
|
||||||
|
|||||||
10
.github/actions/vmtest/action.yml
vendored
10
.github/actions/vmtest/action.yml
vendored
@@ -41,24 +41,26 @@ runs:
|
|||||||
- name: Prepare to build BPF selftests
|
- name: Prepare to build BPF selftests
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
echo "::group::Prepare building selftest"
|
source $GITHUB_ACTION_PATH/../../../ci/vmtest/helpers.sh
|
||||||
|
foldable start "Prepare building selftest"
|
||||||
cd .kernel
|
cd .kernel
|
||||||
cat tools/testing/selftests/bpf/config \
|
cat tools/testing/selftests/bpf/config \
|
||||||
tools/testing/selftests/bpf/config.${{ inputs.arch }} > .config
|
tools/testing/selftests/bpf/config.${{ inputs.arch }} > .config
|
||||||
make olddefconfig && make prepare
|
make olddefconfig && make prepare
|
||||||
cd -
|
cd -
|
||||||
echo "::endgroup::"
|
foldable end
|
||||||
# 2. if kernel == LATEST, build kernel image from tree
|
# 2. if kernel == LATEST, build kernel image from tree
|
||||||
- name: Build kernel image
|
- name: Build kernel image
|
||||||
if: ${{ inputs.kernel == 'LATEST' }}
|
if: ${{ inputs.kernel == 'LATEST' }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
echo "::group::Build Kernel Image"
|
source $GITHUB_ACTION_PATH/../../../ci/vmtest/helpers.sh
|
||||||
|
foldable start "Build Kernel Image"
|
||||||
cd .kernel
|
cd .kernel
|
||||||
make -j $((4*$(nproc))) all > /dev/null
|
make -j $((4*$(nproc))) all > /dev/null
|
||||||
cp vmlinux ${{ github.workspace }}
|
cp vmlinux ${{ github.workspace }}
|
||||||
cd -
|
cd -
|
||||||
echo "::endgroup::"
|
foldable end
|
||||||
# else, just download prebuilt kernel image
|
# else, just download prebuilt kernel image
|
||||||
- name: Download prebuilt kernel
|
- name: Download prebuilt kernel
|
||||||
if: ${{ inputs.kernel != 'LATEST' }}
|
if: ${{ inputs.kernel != 'LATEST' }}
|
||||||
|
|||||||
5
.github/workflows/coverity.yml
vendored
5
.github/workflows/coverity.yml
vendored
@@ -15,12 +15,13 @@ jobs:
|
|||||||
- uses: ./.github/actions/setup
|
- uses: ./.github/actions/setup
|
||||||
- name: Run coverity
|
- name: Run coverity
|
||||||
run: |
|
run: |
|
||||||
echo ::group::Setup CI env
|
source $GITHUB_ACTION_PATH/../../../ci/vmtest/helpers.sh
|
||||||
|
foldable start "Setup CI env"
|
||||||
source /tmp/ci_setup
|
source /tmp/ci_setup
|
||||||
export COVERITY_SCAN_NOTIFICATION_EMAIL="${AUTHOR_EMAIL}"
|
export COVERITY_SCAN_NOTIFICATION_EMAIL="${AUTHOR_EMAIL}"
|
||||||
export COVERITY_SCAN_BRANCH_PATTERN=${GITHUB_REF##refs/*/}
|
export COVERITY_SCAN_BRANCH_PATTERN=${GITHUB_REF##refs/*/}
|
||||||
export TRAVIS_BRANCH=${COVERITY_SCAN_BRANCH_PATTERN}
|
export TRAVIS_BRANCH=${COVERITY_SCAN_BRANCH_PATTERN}
|
||||||
echo ::endgroup::
|
foldable end
|
||||||
scripts/coverity.sh
|
scripts/coverity.sh
|
||||||
env:
|
env:
|
||||||
COVERITY_SCAN_TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
|
COVERITY_SCAN_TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user