|
| 1 | +name: 'Install Dependencies' |
| 2 | +description: 'Install required dependencies in container' |
| 3 | + |
| 4 | +inputs: |
| 5 | + clang-tools: |
| 6 | + description: 'Install clang & clang-tools-extra' |
| 7 | + required: false |
| 8 | + default: false |
| 9 | + |
| 10 | + pcap: |
| 11 | + description: 'Install libpcap-devel' |
| 12 | + required: false |
| 13 | + default: false |
| 14 | + |
| 15 | + nfb: |
| 16 | + description: 'Install nfb-framework dependencies' |
| 17 | + required: false |
| 18 | + default: false |
| 19 | + |
| 20 | + dpdk: |
| 21 | + description: 'Install DPDK dependencies' |
| 22 | + required: false |
| 23 | + default: false |
| 24 | + |
| 25 | + nemea: |
| 26 | + description: 'Install NEMEA dependencies' |
| 27 | + required: false |
| 28 | + default: false |
| 29 | + |
| 30 | + tests: |
| 31 | + description: 'Install dependencies for tests' |
| 32 | + required: false |
| 33 | + default: false |
| 34 | + |
| 35 | +runs: |
| 36 | + using: 'composite' |
| 37 | + steps: |
| 38 | + - name: Install build dependencies |
| 39 | + shell: bash |
| 40 | + run: | |
| 41 | + dnf config-manager --set-enabled ol9_codeready_builder |
| 42 | + dnf install -y dnf-plugins-core epel-release |
| 43 | + dnf install -y make gcc-c++ cmake3 git rpm-build |
| 44 | + dnf install -y fuse3-devel openssl-devel gcc-toolset-14-libatomic-devel libunwind-devel lz4-devel |
| 45 | +
|
| 46 | + - name: Install clang tools |
| 47 | + if: ${{ inputs.clang-tools == 'true' }} |
| 48 | + shell: bash |
| 49 | + run: | |
| 50 | + dnf install -y clang clang-tools-extra |
| 51 | + |
| 52 | + - name: Install libpcap-devel |
| 53 | + if: ${{ inputs.pcap == 'true' }} |
| 54 | + shell: bash |
| 55 | + run: | |
| 56 | + dnf install -y libpcap-devel |
| 57 | +
|
| 58 | + - name: Install nfb-framework dependencies |
| 59 | + if: ${{ inputs.nfb == 'true' }} |
| 60 | + shell: bash |
| 61 | + run: | |
| 62 | + dnf copr enable @CESNET/nfb-framework |
| 63 | + dnf install -y nfb-framework numactl-devel |
| 64 | + |
| 65 | + - name: Install DPDK dependencies |
| 66 | + if: ${{ inputs.dpdk == 'true' }} |
| 67 | + shell: bash |
| 68 | + run: | |
| 69 | + dnf install -y dpdk-devel |
| 70 | + |
| 71 | + - name: Install NEMEA dependencies |
| 72 | + if: ${{ inputs.nemea == 'true' }} |
| 73 | + shell: bash |
| 74 | + run: | |
| 75 | + dnf copr enable @CESNET/NEMEA-stable |
| 76 | + dnf install -y nemea-framework-devel |
| 77 | + |
| 78 | + - name: Install dependencies for tests |
| 79 | + if: ${{ inputs.tests == 'true' }} |
| 80 | + shell: bash |
| 81 | + run: | |
| 82 | + dnf copr enable @CESNET/NEMEA-stable |
| 83 | + dnf install -y nemea-modules |
0 commit comments