Rpmbuild: Ensured the toolset is enabled when needed in the %build …
#9
This file contains hidden or 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
| name: upload SRPM to copr | |
| on: | |
| push: | |
| branches: | |
| - release | |
| jobs: | |
| upload-srpm-to-copr: | |
| runs-on: ubuntu-latest | |
| container: oraclelinux:9 | |
| steps: | |
| - name: Install git | |
| run: dnf install -y git | |
| - name: Check out repository code | |
| uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| uses: ./.github/actions/install-dependencies | |
| with: | |
| pcap: true | |
| dpdk: true | |
| nfb: true | |
| nemea: true | |
| copr: true | |
| - name: Mark github workspace as safe | |
| run: git config --system --add safe.directory $PWD | |
| - name: Create build directory | |
| run: mkdir build | |
| - name: Configure CMake to make rpm | |
| run: | | |
| cd build | |
| cmake3 .. -DCMAKE_BUILD_TYPE=Release -DENABLE_INPUT_PCAP=ON -DENABLE_INPUT_DPDK=ON -DENABLE_INPUT_NFB=ON -DENABLE_PROCESS_EXPERIMENTAL=ON | |
| make rpm | |
| - name: make rpm-msec | |
| run: make rpm-msec | |
| - name: make rpm-nemea | |
| run: | | |
| cd build | |
| cmake3 .. -DCMAKE_BUILD_TYPE=Release -DENABLE_OUTPUT_UNIREC=ON | |
| make rpm-nemea | |
| - name: Create copr config | |
| run: | | |
| mkdir ~/.config | |
| echo "${{ secrets.COPR_CONFIG }}" >> ~/.config/copr | |
| - name: Upload SRPM to copr | |
| run: | | |
| copr build @CESNET/NEMEA-testing build/pkg/rpm/rpmbuild/SRPMS/* --with input_pcap --with input_dpdk --with input_nfb --with process_experimental --with output_unirec |