Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin workflow scripts to Ubuntu-22.04 #173

Merged
merged 4 commits into from
Dec 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 12 additions & 51 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@ env:
SDE_INSTALL_DIR: /opt/p4dev/dpdk-sde

DEPS_REPOSITORY: ipdk-io/stratum-deps
DEPS_TAG: v1.2.1
DEPS_FILENAME: deps-ubuntu-latest-x86_64.tar.gz
DEPS_TAG: v1.3.4
DEPS_FILENAME: deps-ubuntu-1.3.4-x86_64.tar.gz
DEPS_INSTALL_DIR: /opt/p4dev/x86deps

PREREQS: libbsd-dev libnl-3-dev libnl-route-3-dev libnl-genl-3-dev

jobs:
#---------------------------------------------------------------------
# 1 - dpdk_build_check
# 1 - dpdk_build_and_test
#---------------------------------------------------------------------
dpdk_build_check:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- name: Check out networking-recipe
Expand Down Expand Up @@ -72,64 +72,25 @@ jobs:
sudo apt install $PREREQS

- name: Build krnlmon
working-directory: recipe
working-directory: recipe/krnlmon/krnlmon
run: |
export DEPEND_INSTALL=$DEPS_INSTALL_DIR
export SDE_INSTALL=$SDE_INSTALL_DIR
./make-all.sh --target=dpdk --rpath --no-ovs --no-build
cmake --build build -j4 --target krnlmon
cmake -B build -C dpdk.cmake
cmake --build build -j4 --target dummy_krnlmon

#---------------------------------------------------------------------
# 2 - dpdk_unit_tests
#---------------------------------------------------------------------
dpdk_unit_tests:
runs-on: ubuntu-latest

steps:
- name: Check out networking-recipe
uses: actions/checkout@v4
with:
repository: ipdk-io/networking-recipe
submodules: recursive
path: recipe

- name: Install dpdk-sde
uses: robinraju/[email protected]
with:
repository: ${{ env.SDE_REPOSITORY }}
tag: ${{ env.SDE_TAG }}
fileName: ${{ env.SDE_FILENAME }}
- run: |
sudo tar -xzf $SDE_FILENAME -C /
rm $SDE_FILENAME

- name: Install stratum-deps
uses: robinraju/[email protected]
with:
repository: ${{ env.DEPS_REPOSITORY }}
tag: ${{ env.DEPS_TAG }}
fileName: ${{ env.DEPS_FILENAME }}
- run: |
sudo tar -xzf $DEPS_FILENAME -C /
rm $DEPS_FILENAME

- name: Install prerequisites
run: |
sudo apt install $PREREQS

- name: Run dpdk unit tests
working-directory: recipe
- name: Run unit tests
working-directory: recipe/krnlmon/krnlmon
run: |
export DEPEND_INSTALL=$DEPS_INSTALL_DIR
export SDE_INSTALL=$SDE_INSTALL_DIR
./make-all.sh --target=dpdk --no-ovs --no-build
cmake --build build --target krnlmon-test
cmake --build build -j4 --target krnlmon-test

#---------------------------------------------------------------------
# check_clang_format
# 2 - check_clang_format
#---------------------------------------------------------------------
check_clang_format:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- name: Check out krnlmon repository
Expand Down