forked from sonic-net/DASH
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (54 loc) · 1.57 KB
/
dash-dpdk-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: DASH-DPDK-CI
on:
push:
branches: [ "**" ]
paths:
- '.gitmodules'
- '.github/workflows/dash-dpdk-ci.yml'
- 'test/**.py'
- 'test/**requirements.txt'
- 'test/**.sh'
- 'test/**.yml'
- 'dash-pipeline/**'
- '!dash-pipeline/dockerfiles/Dockerfile.*'
- 'dash-pipeline/dockerfiles/DOCKER_P4C_DPDK_IMG.env'
- '!dash-pipeline/.dockerignore'
- '!dash-pipeline/**.md'
- '!dash-pipeline/**.svg'
- '!dash-pipeline/**.png'
- '!dash-pipeline/**.txt'
pull_request:
branches: [ "**" ]
paths:
- '.gitmodules'
- '.github/workflows/dash-bmv2-ci.yml'
- 'test/**.py'
- 'test/**requirements.txt'
- 'test/**.sh'
- 'test/**.yml'
- 'dash-pipeline/**'
- '!dash-pipeline/dockerfiles/Dockerfile.*'
- 'dash-pipeline/dockerfiles/DOCKER_P4C_DPDK_IMG.env'
- '!dash-pipeline/.dockerignore'
- '!dash-pipeline/**.md'
- '!dash-pipeline/**.svg'
- '!dash-pipeline/**.png'
- '!dash-pipeline/**.txt'
workflow_dispatch:
jobs:
build:
name: Build DASH Pipeline for P4-DPDK
runs-on: ubuntu-20.04
env:
docker_fg_flags: --privileged
docker_fg_root_flags: --privileged -u root
docker_bg_flags: -d --privileged
defaults:
run:
working-directory: ./dash-pipeline
steps:
- uses: actions/checkout@v3
- name: Pull/Build docker p4c-dpdk image
run: make docker-dash-p4c-dpdk
- name: Build P4 software switch (dpdk) and P4Info
run: DOCKER_FLAGS=$docker_fg_flags make p4c-dpdk-pna