aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorTuomas Taipale <tuomas.taipale@nokia.com>2022-04-14 06:45:16 +0000
committerMatias Elo <matias.elo@nokia.com>2022-05-02 17:02:50 +0300
commitd5508b9289f4dfa17d55be084572fa6a2b935321 (patch)
treeea84c6efe1852382a901494beb30c76cc354fcda /.github
parent40e999eaeb52d34d5289b6b8d6e405f1623d8a53 (diff)
github_ci: add XDP build tests
Build ODP with `--enable-xdp` on x86 and arm64. Signed-off-by: Tuomas Taipale <tuomas.taipale@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci-pipeline-arm64.yml19
-rw-r--r--.github/workflows/ci-pipeline.yml17
2 files changed, 36 insertions, 0 deletions
diff --git a/.github/workflows/ci-pipeline-arm64.yml b/.github/workflows/ci-pipeline-arm64.yml
index 25cb811b4..7da67934c 100644
--- a/.github/workflows/ci-pipeline-arm64.yml
+++ b/.github/workflows/ci-pipeline-arm64.yml
@@ -82,6 +82,25 @@ jobs:
if: ${{ failure() }}
run: find . -name config.log -exec cat {} \;
+ Build_XDP:
+ if: ${{ github.repository == 'OpenDataPlane/odp' }}
+ runs-on: [self-hosted, ARM64]
+ env:
+ CONF: "--enable-xdp"
+ OS: ubuntu_22.04
+ strategy:
+ fail-fast: false
+ matrix:
+ cc: [gcc, clang]
+ steps:
+ - uses: AutoModality/action-clean@v1.1.0
+ - uses: actions/checkout@v2
+ - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${{matrix.cc}}"
+ -e CONF="${CONF}" $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH}-native /odp/scripts/ci/build_${ARCH}.sh
+ - name: Failure log
+ if: ${{ failure() }}
+ run: find . -name config.log -exec cat {} \;
+
Run_distcheck:
if: ${{ github.repository == 'OpenDataPlane/odp' }}
runs-on: [self-hosted, ARM64]
diff --git a/.github/workflows/ci-pipeline.yml b/.github/workflows/ci-pipeline.yml
index 30fcf82ae..5cb9a7f0b 100644
--- a/.github/workflows/ci-pipeline.yml
+++ b/.github/workflows/ci-pipeline.yml
@@ -243,6 +243,23 @@ jobs:
if: ${{ failure() }}
run: find . -name config.log -exec cat {} \;
+ Build_XDP:
+ runs-on: ubuntu-18.04
+ env:
+ CONF: "--enable-xdp"
+ OS: ubuntu_22.04
+ strategy:
+ fail-fast: false
+ matrix:
+ cc: [gcc, clang]
+ steps:
+ - uses: actions/checkout@v2
+ - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${{matrix.cc}}"
+ -e CONF="${CONF}" $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH} /odp/scripts/ci/build_${ARCH}.sh
+ - name: Failure log
+ if: ${{ failure() }}
+ run: find . -name config.log -exec cat {} \;
+
Run_coverage:
runs-on: ubuntu-18.04
steps: