-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Stéphane Graber <[email protected]>
- Loading branch information
Showing
3 changed files
with
81 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Build LXCFS | ||
description: Install dependencies and build the codebase | ||
inputs: | ||
fuse: | ||
required: true | ||
os: | ||
required: true | ||
compiler: | ||
required: true | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install dependencies | ||
shell: bash | ||
run: | | ||
sudo apt-get update -qq | ||
sudo apt-get install -qq ${{ inputs.compiler }} | ||
sudo apt-get install -qq lib${{ inputs.fuse }}-dev | ||
sudo apt-get install -qq python3 python3-pip python3-setuptools pkg-config uuid-runtime | ||
if [ "${{ inputs.os }}" = "ubuntu-22.04" ]; then | ||
sudo pip3 install meson==0.55.1 ninja | ||
else | ||
sudo pip3 install meson==0.55.1 ninja --break-system-packages | ||
fi | ||
- name: Compiler version | ||
shell: bash | ||
env: | ||
CC: ${{ inputs.compiler }} | ||
run: | | ||
${CC} --version | ||
- name: Build | ||
shell: bash | ||
env: | ||
CC: ${{ inputs.compiler }} | ||
run: | | ||
meson setup -Ddocs=false -Dtests=true -Dinit-script=systemd -Dprefix=/usr -Db_sanitize=address,undefined build/ | ||
meson compile -C build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Test suite | ||
description: Runs the testsuite | ||
inputs: | ||
fuse: | ||
required: true | ||
os: | ||
required: true | ||
compiler: | ||
required: true | ||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: ./.github/actions/build | ||
with: | ||
compiler: ${{ inputs.compiler }} | ||
fuse: ${{ inputs.fuse }} | ||
os: ${{ inputs.os }} | ||
|
||
- name: Test | ||
shell: bash | ||
env: | ||
CC: ${{ inputs.compiler }} | ||
run: | | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters