aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorPetri Savolainen <petri.savolainen@nokia.com>2022-08-19 14:45:26 +0300
committerPetri Savolainen <petri.savolainen@nokia.com>2022-08-25 10:51:24 +0300
commitcf9f0f40d61d8d2462f6f43472d2c9fe07a896e2 (patch)
treeaea2a38f8f9d2670e0a509757da6365e13297103 /.github
parent3e55d87fa1b0fccda4257b838219c7a220ce1098 (diff)
ci: add static builds
Added CI jobs that build everything with static linking (--disable-shared), with and without LTO. OpenSSL and PCAP is disabled on Ubuntu 22 build, since those generated internal linking errors. 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.yml35
1 files changed, 35 insertions, 0 deletions
diff --git a/.github/workflows/ci-pipeline.yml b/.github/workflows/ci-pipeline.yml
index ead38620a..b938649f7 100644
--- a/.github/workflows/ci-pipeline.yml
+++ b/.github/workflows/ci-pipeline.yml
@@ -82,6 +82,41 @@ jobs:
if: ${{ failure() }}
run: find . -name config.log -exec cat {} \;
+ Build_static_u20:
+ runs-on: ubuntu-18.04
+ env:
+ OS: ubuntu_20.04
+ strategy:
+ fail-fast: false
+ matrix:
+ cc_ver: [9]
+ conf: ['--disable-shared', '--enable-lto --disable-shared']
+ 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_static_${ARCH}.sh
+ - name: Failure log
+ if: ${{ failure() }}
+ run: find . -name config.log -exec cat {} \;
+
+ Build_static_u22:
+ runs-on: ubuntu-18.04
+ env:
+ OS: ubuntu_22.04
+ CONF: "--disable-shared --without-openssl --without-pcap"
+ strategy:
+ fail-fast: false
+ matrix:
+ cc_ver: [10, 11, 12]
+ conf: ['', '--enable-lto']
+ 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="${CONF} ${{matrix.conf}}" $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH} /odp/scripts/ci/build_static_${ARCH}.sh
+ - name: Failure log
+ if: ${{ failure() }}
+ run: find . -name config.log -exec cat {} \;
+
Build_arm64:
runs-on: ubuntu-18.04
env: