Bump actions/upload-artifact from 4.4.3 to 4.5.0 #28
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) Microsoft Corporation | |
# SPDX-License-Identifier: MIT | |
# This workflow will run the bpf_performance test suite on the provided Ubuntu version | |
name: ebpf_linux | |
on: | |
# Permit manual runs of the workflow. | |
workflow_dispatch: | |
inputs: | |
ref: | |
description: 'EBPF Branch or Commit' | |
required: false | |
default: 'main' | |
type: string | |
pull_request: | |
branches: | |
- main | |
paths: | |
- .github/workflows/ebpf_linux.yml | |
repository_dispatch: | |
types: [run-ebpf-linux] | |
concurrency: | |
group: ebpf-linux-${{ github.event.client_payload.pr || github.event.client_payload.sha || inputs.ref || github.event.pull_request.number || 'main' }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: | |
- self-hosted | |
- os-ubuntu-20.04 | |
- x64 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 | |
with: | |
ref: ${{ github.event.client_payload.pr || github.event.client_payload.sha || inputs.ref || github.event.pull_request.head.sha || 'main' }} | |
submodules: 'recursive' | |
repository: 'microsoft/bpf_performance' | |
- name: Setup | |
run: | | |
sudo apt update | |
sudo apt-get install -y \ | |
gcc-multilib \ | |
lcov \ | |
pkg-config \ | |
libelf-dev | |
- name: Clone and build libbpf | |
run: | | |
git clone https://github.com/libbpf/libbpf.git | |
cd libbpf | |
git checkout v0.7.0 | |
cd src | |
make | |
sudo LIBDIR=/lib/x86_64-linux-gnu make install | |
sudo ldconfig | |
- name: Get Linux Kernel version | |
run: | | |
echo "COMMIT_SHA=$(uname -r)" >> $env:GITHUB_ENV | |
- name: Configure CMake | |
run: | | |
cmake \ | |
-B ${{github.workspace}}/build \ | |
-DCMAKE_BUILD_TYPE=Release | |
- name: Build | |
run: | | |
cmake --build ${{github.workspace}}/build --config Release -- -j $(nproc) | |
- name: Create results directory | |
run: | | |
mkdir -p ${{github.workspace}}/results | |
- name: Create commit_sha.txt - Ubuntu-22.04 | |
run: | | |
echo ${{env.COMMIT_SHA}} >> ${{github.workspace}}/results/commit_sha.txt | |
- name: Run tests | |
working-directory: ${{github.workspace}}/build/bin | |
run: | | |
sudo ./bpf_performance_runner -i tests.yml -r | tee ${{github.workspace}}/results/jit-ubuntu-40.04-Release.csv | |
exit ${PIPESTATUS[0]} | |
- name: Upload results | |
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0 | |
with: | |
name: results-${{env.BUILD_TYPE}}-${{inputs.platform}}-${{inputs.option}} | |
path: | | |
${{github.workspace}}/results/*.csv | |
${{github.workspace}}/results/commit_sha.txt |