1name: 'setup' 2description: 'setup env, create /tmp/ci_setup' 3runs: 4 using: "composite" 5 steps: 6 - id: variables 7 run: | 8 export REPO_ROOT=$GITHUB_WORKSPACE 9 export CI_ROOT=$REPO_ROOT/ci 10 # this is somewhat ugly, but that is the easiest way to share this code with 11 # arch specific docker 12 echo 'echo ::group::Env setup' > /tmp/ci_setup 13 echo export DEBIAN_FRONTEND=noninteractive >> /tmp/ci_setup 14 echo sudo apt-get update >> /tmp/ci_setup 15 echo sudo apt-get install -y aptitude qemu-kvm zstd binutils-dev elfutils libcap-dev libelf-dev libdw-dev libguestfs-tools >> /tmp/ci_setup 16 echo export PROJECT_NAME='libbpf' >> /tmp/ci_setup 17 echo export AUTHOR_EMAIL="$(git log -1 --pretty=\"%aE\")" >> /tmp/ci_setup 18 echo export REPO_ROOT=$GITHUB_WORKSPACE >> /tmp/ci_setup 19 echo export CI_ROOT=$REPO_ROOT/ci >> /tmp/ci_setup 20 echo export VMTEST_ROOT=$CI_ROOT/vmtest >> /tmp/ci_setup 21 echo 'echo ::endgroup::' >> /tmp/ci_setup 22 shell: bash 23 24