From 02fd650197b370cdbb89626c4e2e43216eda27d9 Mon Sep 17 00:00:00 2001 From: ywc689 Date: Mon, 25 Jan 2021 11:31:47 +0800 Subject: [PATCH] CI: add CI workflow file --- .github/workflows/build.yaml | 60 ++++++++++++++++++++++++++++++++++++ .github/workflows/run.yaml | 29 +++++++++++++++++ README.md | 2 ++ 3 files changed, 91 insertions(+) create mode 100644 .github/workflows/build.yaml create mode 100644 .github/workflows/run.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 000000000..306fae5fb --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,60 @@ +name: Build + +on: + push: + branches: [master, devel] + pull_request: + branches: [master, devel] + types: [review_requested] + release: + types: [published] + schedule: + branches: [devel] + - cron: '30 3 * * 1' + #workflow_dispatch: + +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 + diff --git a/.github/workflows/run.yaml b/.github/workflows/run.yaml new file mode 100644 index 000000000..4b144d737 --- /dev/null +++ b/.github/workflows/run.yaml @@ -0,0 +1,29 @@ +name: Run + +on: + push: + branches: [master, devel] + pull_request: + branches: [master, devel] + types: [review_requested] + release: + types: [published] + schedule: + branches: [devel] + - cron: '30 4 * * 1' + #workflow_dispatch: + +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 diff --git a/README.md b/README.md index 899671b48..8db4504eb 100644 --- a/README.md +++ b/README.md @@ -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