From 506a544834573905ada61da8e00f54b04f0caf43 Mon Sep 17 00:00:00 2001 From: Sergei Iudin Date: Thu, 29 Jul 2021 16:49:38 -0700 Subject: [PATCH] ci: improve CI UX a little by setting names a hiding debug --- .github/actions/setup/action.yml | 4 +++- .github/workflows/test.yml | 9 +++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index e6002f3..9605e91 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -9,7 +9,8 @@ runs: 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 'echo ::group::Env setup' > /tmp/ci_setup + echo export DEBIAN_FRONTEND=noninteractive >> /tmp/ci_setup echo sudo apt-get update >> /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 @@ -17,5 +18,6 @@ runs: 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 + echo 'echo ::endgroup' >> /tmp/ci_setup shell: bash diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d056d62..aaf7276 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,8 +23,11 @@ jobs: - kernel: '4.9.0' steps: - uses: actions/checkout@v2 + name: Checkout - uses: ./.github/actions/setup + name: Setup - uses: ./.github/actions/vmtest + name: vmtest with: kernel: ${{ matrix.kernel }} @@ -49,8 +52,11 @@ jobs: target: RUN_GCC10_ASAN steps: - uses: actions/checkout@v2 + name: Checkout - uses: ./.github/actions/setup + name: Setup - uses: ./.github/actions/debian + name: Build with: target: ${{ matrix.target }} @@ -67,9 +73,12 @@ jobs: - arch: x86 steps: - uses: actions/checkout@v2 + name: Checkout - uses: ./.github/actions/setup + name: Pre-Setup - run: source /tmp/ci_setup && sudo -E $CI_ROOT/managers/ubuntu.sh if: matrix.arch == 'x86' + name: Setup - uses: uraimo/run-on-arch-action@v2.0.5 name: Build in docker if: matrix.arch != 'x86'