Skip to content

Commit

Permalink
github: Improve progress reporting
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <[email protected]>
  • Loading branch information
stgraber committed Dec 19, 2024
1 parent d0c13d4 commit e19939c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
12 changes: 12 additions & 0 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }} \
Expand All @@ -22,18 +24,26 @@ runs:
pkg-config \
uuid-runtime
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 LXCFS"
# Standard build
meson setup build \
-Ddocs=false \
Expand All @@ -42,3 +52,5 @@ runs:
-Dprefix=/usr \
-Db_sanitize=address,undefined
meson compile -C build
echo "::endgroup::"
7 changes: 6 additions & 1 deletion .github/actions/testsuite/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ inputs:
runs:
using: "composite"
steps:
- uses: ./.github/actions/build
- name: Build LXCFS
uses: ./.github/actions/build
with:
compiler: ${{ inputs.compiler }}
fuse: ${{ inputs.fuse }}
Expand All @@ -22,5 +23,9 @@ runs:
env:
CC: ${{ inputs.compiler }}
run: |
echo "::group::Running the testsuite"
echo 1 | sudo tee /sys/fs/cgroup/cpuset/cgroup.clone_children || true
sudo -E PATH="${PATH}" LD_LIBRARY_PATH="${LD_LIBRARY_PATH}" build/tests/main.sh
echo "::endgroup::"
9 changes: 6 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,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 }}
fuse: ${{ matrix.fuse }}
Expand Down Expand Up @@ -57,7 +58,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 }}
fuse: ${{ matrix.fuse }}
Expand All @@ -79,7 +81,8 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- uses: ./.github/actions/build
- name: Build LXCFS
uses: ./.github/actions/build
with:
compiler: ${{ matrix.compiler }}
fuse: ${{ matrix.fuse }}
Expand Down

0 comments on commit e19939c

Please sign in to comment.