From f64d2a38ba9b5912583be09b4a51722713bdd0de Mon Sep 17 00:00:00 2001 From: Tom Hromatka Date: Tue, 15 Dec 2020 13:45:46 -0700 Subject: [PATCH] github: Add a Github Action to setup the libcgroup directory Add a Github Action to setup the libcgroup directory. This action installs the required dependencies, run bootstrap.sh, runs configure, and invokes make. Since the action is invoked locally (and not via Github Action's published action mechanism), the repository must be git cloned prior to running this action. Signed-off-by: Tom Hromatka --- .github/actions/setup-libcgroup/action.yml | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/actions/setup-libcgroup/action.yml diff --git a/.github/actions/setup-libcgroup/action.yml b/.github/actions/setup-libcgroup/action.yml new file mode 100644 index 00000000..6eeb169d --- /dev/null +++ b/.github/actions/setup-libcgroup/action.yml @@ -0,0 +1,34 @@ +# +# Action to setup the libcgroup directory +# +# Copyright (c) 2020 Oracle and/or its affiliates. +# Author: Tom Hromatka +# + +# +# This library is free software; you can redistribute it and/or modify it +# under the terms of version 2.1 of the GNU Lesser General Public License as +# published by the Free Software Foundation. +# +# This library is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License +# for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this library; if not, see . +# + +name: Setup the libcgroup directory +description: "Install dependencies, git clone, bootstrap, configure, and make libcgroup" +runs: + using: "composite" + steps: + - run: sudo apt-get install libpam-dev lcov + shell: bash + - run: ./bootstrap.sh + shell: bash + - run: CFLAGS="$CFLAGS -g -O0" ./configure --sysconfdir=/etc --localstatedir=/var --enable-code-coverage + shell: bash + - run: make + shell: bash -- 2.47.2