add rocky9 build test #12
This file contains 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: Build | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, ubuntu-22.04, macOS-14, macOS-15] | |
compiler: [gcc, clang] | |
exclude: | |
- os: macOS-14 | |
compiler: gcc | |
- os: macOS-15 | |
compiler: gcc | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install libpcap-dev | |
if: contains(matrix.os, 'ubuntu') | |
run: sudo apt install -y libpcap-dev | |
- name: Compile using ${{ matrix.compiler }} | |
run: make CC=${{ matrix.compiler }} | |
- name: Install | |
run: sudo make install | |
- name: Execute | |
run: /usr/local/sbin/ifpstat -v | |
rocky-build: | |
runs-on: ubuntu-latest | |
container: | |
image: rockylinux/rockylinux:9 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install build tools | |
run: dnf groupinstall -y 'Development Tools' | |
- name: Enable CRB repository | |
run: dnf config-manager -y --set-enabled crb | |
- name: Install libpcap-devel | |
run: dnf install -y libpcap-devel | |
- name: Compile | |
run: make | |
- name: Install | |
run: make install | |
- name: Execute | |
run: /usr/local/sbin/ifpstat -v | |
... |