diff options
author | Petri Savolainen <petri.savolainen@nokia.com> | 2022-08-18 10:20:12 +0300 |
---|---|---|
committer | Petri Savolainen <petri.savolainen@nokia.com> | 2022-08-25 10:51:24 +0300 |
commit | 220d2afb76f748a33580b8bd86bbd8ab51c451d7 (patch) | |
tree | 83c626c32a56e24bb358c41e91834c0795dd2db0 /.github | |
parent | cf9f0f40d61d8d2462f6f43472d2c9fe07a896e2 (diff) |
ci: add Ubuntu 20 and 22 build matrices
These matrices allow easy testing of various gcc compiler versions
and configuration option combinations. These jobs use dynamic
linking but not LTO, since it is tested now mainly with static
library builds.
Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ci-pipeline.yml | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/.github/workflows/ci-pipeline.yml b/.github/workflows/ci-pipeline.yml index b938649f7..f7710e86c 100644 --- a/.github/workflows/ci-pipeline.yml +++ b/.github/workflows/ci-pipeline.yml @@ -251,18 +251,35 @@ jobs: if: ${{ failure() }} run: find . -name config.log -exec cat {} \; - Build_gcc: + Build_gcc_u20: + runs-on: ubuntu-18.04 + env: + OS: ubuntu_20.04 + strategy: + fail-fast: false + matrix: + cc_ver: [9] + conf: ['', '--enable-abi-compat'] + steps: + - uses: actions/checkout@v2 + - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="gcc-${{matrix.cc_ver}}" -e CXX="g++-${{matrix.cc_ver}}" + -e CONF="${{matrix.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 {} \; + + Build_gcc_u22: runs-on: ubuntu-18.04 env: OS: ubuntu_22.04 strategy: fail-fast: false matrix: - cc: [gcc-10, gcc-11, gcc-12] - conf: ['', '--enable-lto'] + cc_ver: [10, 11, 12] + conf: ['', '--enable-abi-compat'] steps: - uses: actions/checkout@v2 - - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${{matrix.cc}}" + - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="gcc-${{matrix.cc_ver}}" -e CXX="g++-${{matrix.cc_ver}}" -e CONF="${{matrix.conf}}" $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH} /odp/scripts/ci/build_${ARCH}.sh - name: Failure log if: ${{ failure() }} |