Skip to content

Commit

Permalink
CI: add CI workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
ywc689 committed Feb 1, 2021
1 parent 379584a commit 4e58dee
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 0 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Build

on:
push:
branches: [master, devel]
release:
branches: [master]
types: [published]
label:
branches: [master, devel]
types: [created]
name: [pr/to-test-codes]
schedule:
- cron: '30 4 * * 1'
pull_request:
branches: [master, devel]
#types: [assigned, opened, synchronize, reopened]

jobs:
build-basic:
runs-on: self-hosted
env:
RTE_SDK: /data/dpdk/intel/dpdk-stable-18.11.2
RTE_TARGET: x86_64-native-linuxapp-gcc
steps:
- uses: actions/checkout@v2
- name: make
run: make -j32

build-mlnx:
runs-on: self-hosted
env:
RTE_SDK: /data/dpdk/mlnx/dpdk-stable-18.11.2
RTE_TARGET: x86_64-native-linuxapp-gcc
steps:
- uses: actions/checkout@v2
- name: config
run: sed -i 's/^CONFIG_MLX5=./CONFIG_MLX5=y/' src/config.mk
- name: make
run: make -j32

build-debug:
runs-on: self-hosted
env:
RTE_SDK: /data/dpdk/intel/dpdk-stable-18.11.2
RTE_TARGET: x86_64-native-linuxapp-gcc
steps:
- uses: actions/checkout@v2
- name: config
run: sed -i 's/#CFLAGS +=/CFLAGS +=/' src/config.mk && sed -i 's/^#DEBUG := 1/DEBUG := 1/' src/Makefile
- name: make
run: make -j32

build-olddpdk:
runs-on: self-hosted
env:
RTE_SDK: /data/dpdk/intel/dpdk-stable-17.11.6
RTE_TARGET: x86_64-native-linuxapp-gcc
steps:
- uses: actions/checkout@v2
- name: make
run: make -j32

30 changes: 30 additions & 0 deletions .github/workflows/run.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Run

on:
push:
branches: [master, devel]
# release:
# branches: [master]
# types: [published]
# label:
# branches: [master, devel]
# types: [created]
# #name: [pr/to-test-codes]
# schedule:
# branches: [devel]
# - cron: '30 4 * * 1'

jobs:
run-dpvs:
runs-on: self-hosted
env:
RTE_SDK: /data/dpdk/intel/dpdk-stable-18.11.2
RTE_TARGET: x86_64-native-linuxapp-gcc
steps:
- uses: actions/checkout@v2
- name: make
run: make -j32
- name: install
run: make install
- name: run-dpvs
run: sudo dpvsci $(pwd)/bin/dpvs
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
![Build](https://github.com/iqiyi/dpvs/workflows/Build/badge.svg) ![Run](https://github.com/iqiyi/dpvs/workflows/Run/badge.svg)

![dpvs-logo.png](./pic/DPVS-logo.png)

# Introduction
Expand Down

0 comments on commit 4e58dee

Please sign in to comment.