adaraiseh basic compilation and test ⚗️ #4
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: Yang iproute2 CI | |
run-name: ${{ github.actor }} basic compilation and test ⚗️ | |
on: | |
push: | |
branches: | |
- '**' | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
build-yp-sr: | |
name: Build iproute2-sysrepo | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
compiler: [ gcc, clang ] | |
steps: | |
- name: add missing packages | |
uses: ConorMacBride/install-package@v1 | |
with: | |
apt: libelf-dev libbpf-dev libbsd-dev libsysrepo-dev libcap-dev libmnl-dev libselinux-dev | |
- name: recursive checkout (with iproute2 submodule) | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: make iproute2-sysrepo | |
run : CC=${{ matrix.compiler }} make -j $(nproc) | |
- name: basic compilation check | |
run : ldd bin/iproute2-sysrepo | |
- name: basic test ip address like | |
run : bin/iproute2-sysrepo |