summaryrefslogtreecommitdiff
path: root/.github/actions/setup/action.yml
blob: 3a5b65aee05f8eccd88f146ac7089b6b00e81157 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#
# 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 update
    shell: bash
  - 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