mirror of
https://github.com/netdata/libbpf.git
synced 2026-03-27 03:39:06 +08:00
Migrate libbpf ci to GH actions
changes to docker command require to run it in non-interactive mode
This commit is contained in:
committed by
Andrii Nakryiko
parent
899c45baa2
commit
5d5af3f07e
20
.github/actions/setup/action.yml
vendored
Normal file
20
.github/actions/setup/action.yml
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
name: 'setup'
|
||||
description: 'setup env, create /tmp/ci_setup'
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- id: variables
|
||||
run: |
|
||||
export REPO_ROOT=$GITHUB_WORKSPACE
|
||||
export CI_ROOT=$REPO_ROOT/travis-ci
|
||||
# this is somewhat ugly, but that is the easiest way to share this code with
|
||||
# arch specific docker
|
||||
echo export DEBIAN_FRONTEND=noninteractive > /tmp/ci_setup
|
||||
echo sudo apt-get install -y aptitude qemu-kvm zstd binutils-dev elfutils libcap-dev libelf-dev libdw-dev >> /tmp/ci_setup
|
||||
echo export PROJECT_NAME='libbpf' >> /tmp/ci_setup
|
||||
echo export AUTHOR_EMAIL="$(git log -1 --pretty=\"%aE\")" >> /tmp/ci_setup
|
||||
echo export REPO_ROOT=$GITHUB_WORKSPACE >> /tmp/ci_setup
|
||||
echo export CI_ROOT=$REPO_ROOT/travis-ci >> /tmp/ci_setup
|
||||
echo export VMTEST_ROOT=$CI_ROOT/vmtest >> /tmp/ci_setup
|
||||
shell: bash
|
||||
|
||||
Reference in New Issue
Block a user