]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
github: Improve progress reporting 4506/head
authorStéphane Graber <stgraber@stgraber.org>
Thu, 19 Dec 2024 03:49:35 +0000 (22:49 -0500)
committerStéphane Graber <stgraber@stgraber.org>
Thu, 19 Dec 2024 04:58:59 +0000 (23:58 -0500)
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
.github/actions/build/action.yml
.github/actions/testsuite/action.yml
.github/workflows/tests.yml

index c77e62de4062b1c45e86faa5357dce8fae24fac7..cd051da55c3661f9168b7c5313333db0b54b9592 100644 (file)
@@ -14,6 +14,8 @@ runs:
     - name: Install dependencies
       shell: bash
       run: |
+        echo "::group::Installing dependencies"
+
         sudo apt-get update -qq
         sudo apt-get install -qq \
             ${{ inputs.compiler }} \
@@ -30,18 +32,26 @@ runs:
             libseccomp-dev \
             libselinux1-dev
 
+        echo "::endgroup::"
+
     - name: Compiler version
       shell: bash
       env:
         CC: ${{ inputs.compiler }}
       run: |
+        echo "::group::Compiler version"
+
         ${CC} --version
 
+        echo "::endgroup::"
+
     - name: Build
       shell: bash
       env:
         CC: ${{ inputs.compiler }}
       run: |
+        echo "::group::Building LXC"
+
         # Standard build
         if [ "${{ inputs.variant }}" = "default" ]; then
             meson setup build \
@@ -65,3 +75,5 @@ runs:
         fi
 
         meson compile -C build
+
+        echo "::endgroup::"
index 2c5f7aa599cbad0550187d05957c7a4819402638..928024d641e5e2ac43c93a2739a4fb9403fe2b23 100644 (file)
@@ -10,7 +10,8 @@ inputs:
 runs:
   using: "composite"
   steps:
-    - uses: ./.github/actions/build
+    - name: Build LXC
+      uses: ./.github/actions/build
       with:
         compiler: ${{ inputs.compiler }}
         os: ${{ inputs.os }}
@@ -19,15 +20,21 @@ runs:
     - name: Remove existing installation
       shell: bash
       run: |
+        echo "::group::Removing existing installation"
+
         sudo apt-get remove --purge -qq \
             liblxc1 \
             liblxc-common \
             liblxc-dev \
             lxc-utils
 
+        echo "::endgroup::"
+
     - name: Install dependencies
       shell: bash
       run: |
+        echo "::group::Installing dependencies"
+
         sudo apt-get install --purge -qq \
             apparmor \
             acl \
@@ -37,11 +44,15 @@ runs:
             rsync \
             uidmap
 
+        echo "::endgroup::"
+
     - name: Test
       shell: bash
       env:
         CC: ${{ inputs.compiler }}
       run: |
+        echo "::group::Running the testsuite"
+
         # Install LXC on the system
         sudo meson install -C build
 
@@ -67,3 +78,5 @@ runs:
         # Run the testsuite
         git clone --depth=1 https://github.com/lxc/lxc-ci
         sudo -E lxc-ci/deps/lxc-exercise
+
+        echo "::endgroup::"
index fb27c03bc36dd91ddc499b9f5da4c3e07e6e3d71..f5b935465f00b8b9db517afef1657ce22fe8e254 100644 (file)
@@ -53,7 +53,8 @@ jobs:
       - name: Checkout code
         uses: actions/checkout@v4
 
-      - uses: ./.github/actions/testsuite
+      - name: Run the testsuite
+        uses: ./.github/actions/testsuite
         with:
           compiler: ${{ matrix.compiler }}
           os: ${{ matrix.os }}
@@ -83,7 +84,8 @@ jobs:
       - name: Checkout code
         uses: actions/checkout@v4
 
-      - uses: ./.github/actions/testsuite
+      - name: Run the testsuite
+        uses: ./.github/actions/testsuite
         with:
           compiler: ${{ matrix.compiler }}
           os: ${{ matrix.os }}