- name: Install dependencies
shell: bash
run: |
+ echo "::group::Installing dependencies"
+
sudo apt-get update -qq
sudo apt-get install -qq \
${{ inputs.compiler }} \
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 \
fi
meson compile -C build
+
+ echo "::endgroup::"
runs:
using: "composite"
steps:
- - uses: ./.github/actions/build
+ - name: Build LXC
+ uses: ./.github/actions/build
with:
compiler: ${{ inputs.compiler }}
os: ${{ inputs.os }}
- 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 \
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
# Run the testsuite
git clone --depth=1 https://github.com/lxc/lxc-ci
sudo -E lxc-ci/deps/lxc-exercise
+
+ echo "::endgroup::"
- 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 }}
- 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 }}