summaryrefslogtreecommitdiff
path: root/.github/actions/setup/action.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/actions/setup/action.yml')
-rw-r--r--.github/actions/setup/action.yml38
1 files changed, 38 insertions, 0 deletions
diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml
new file mode 100644
index 0000000..bfbba66
--- /dev/null
+++ b/.github/actions/setup/action.yml
@@ -0,0 +1,38 @@
+#
+# Github Action to setup the libcgroup directory
+#
+# Copyright (c) 2021 Oracle and/or its affiliates.
+# Author: Tom Hromatka <tom.hromatka@oracle.com>
+#
+
+#
+# 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 <http://www.gnu.org/licenses>.
+#
+
+name: Setup the libseccomp directory
+description: "Install dependencies and configure libseccomp"
+runs:
+ using: "composite"
+ steps:
+ - run: sudo apt-get install -y build-essential valgrind clang-tools lcov gperf astyle codespell
+ shell: bash
+ - run: |
+ sudo apt-get install -y python3 python3-distutils python3-setuptools python3-pip
+ python3 -m pip install --upgrade pip
+ python3 -m pip install cython
+ # Add cython to the path
+ echo "$HOME/.local/bin" >> $GITHUB_PATH
+ shell: bash
+ - run: |
+ ./autogen.sh
+ shell: bash