aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorMatias Elo <matias.elo@nokia.com>2022-07-04 10:03:13 +0300
committerPetri Savolainen <petri.savolainen@nokia.com>2022-07-06 14:23:17 +0300
commita8428f86d81d1a9fb2b9604afa8fe33ff69fc315 (patch)
tree3d2e3e2084f4bfa8fc79689e32990871d1d0d514 /.github
parent419b2d3b68c196779b88d71a79591c266a117dd2 (diff)
github_ci: add build test job for gcc versions
Add new build only tests for GCC versions 11 and 12. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci-pipeline-arm64.yml7
-rw-r--r--.github/workflows/ci-pipeline.yml8
2 files changed, 8 insertions, 7 deletions
diff --git a/.github/workflows/ci-pipeline-arm64.yml b/.github/workflows/ci-pipeline-arm64.yml
index 7da67934c..00a786982 100644
--- a/.github/workflows/ci-pipeline-arm64.yml
+++ b/.github/workflows/ci-pipeline-arm64.yml
@@ -52,19 +52,20 @@ jobs:
if: ${{ failure() }}
run: find . -name config.log -exec cat {} \;
- Build_gcc-10:
+ Build_gcc:
if: ${{ github.repository == 'OpenDataPlane/odp' }}
runs-on: [self-hosted, ARM64]
env:
- CC: gcc-10
+ OS: ubuntu_22.04
strategy:
fail-fast: false
matrix:
+ cc: [gcc-10, gcc-11, gcc-12]
conf: ['', '--enable-lto']
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="${CC}"
+ - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${{matrix.cc}}"
-e CONF="${{matrix.conf}}" $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH}-native /odp/scripts/ci/build_${ARCH}.sh
- name: Failure log
if: ${{ failure() }}
diff --git a/.github/workflows/ci-pipeline.yml b/.github/workflows/ci-pipeline.yml
index 5cb9a7f0b..b84bba470 100644
--- a/.github/workflows/ci-pipeline.yml
+++ b/.github/workflows/ci-pipeline.yml
@@ -216,18 +216,18 @@ jobs:
if: ${{ failure() }}
run: find . -name config.log -exec cat {} \;
- Build_gcc-10:
+ Build_gcc:
runs-on: ubuntu-18.04
env:
- CC: gcc-10
- OS: ubuntu_20.04
+ OS: ubuntu_22.04
strategy:
fail-fast: false
matrix:
+ cc: [gcc-10, gcc-11, gcc-12]
conf: ['', '--enable-lto']
steps:
- uses: actions/checkout@v2
- - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${CC}"
+ - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${{matrix.cc}}"
-e CONF="${{matrix.conf}}" $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH} /odp/scripts/ci/build_${ARCH}.sh
- name: Failure log
if: ${{ failure() }}