Update smoke test TDI commands to enable pipeline (#111) #127
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: "P4SDE CI Build pipeline" | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
concurrency: | |
# if workflow for PR or push is already running stop it, and start new one | |
group: build_p4sde_ci-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build_p4dpdk_ubuntu: | |
timeout-minutes: 30 | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: 'Checkout' | |
uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: 'Install dependencies' | |
working-directory: ./tools/setup | |
run: | | |
sudo apt update -y | |
python install_dep.py | |
- name: 'Compile p4sde dpdk target' | |
run: | | |
export SDE=${GITHUB_WORKSPACE} | |
mkdir install | |
export SDE_INSTALL=${GITHUB_WORKSPACE}/install | |
./autogen.sh | |
./configure --prefix=$SDE_INSTALL | |
make | |
make install |