X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=.github%2Fworkflows%2Fbuild.yml;h=7dac20ddeb0d59e01e8d6727c38d9a255217e473;hb=a1978aa23bf4a8dd34087173f7769250d050315e;hp=bef6e523723b00cc29554f4e2c5b91499df62dda;hpb=87009585e293d0f45d38343af323155c082f146a;p=dpdk.git diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bef6e52372..7dac20ddeb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,10 +15,13 @@ jobs: runs-on: ${{ matrix.config.os }} env: AARCH64: ${{ matrix.config.cross == 'aarch64' }} + ABI_CHECKS: ${{ contains(matrix.config.checks, 'abi') }} BUILD_32BIT: ${{ matrix.config.cross == 'i386' }} BUILD_DOCS: ${{ contains(matrix.config.checks, 'doc') }} CC: ccache ${{ matrix.config.compiler }} DEF_LIB: ${{ matrix.config.library }} + LIBABIGAIL_VERSION: libabigail-1.8 + REF_GIT_TAG: v21.05 RUN_TESTS: ${{ contains(matrix.config.checks, 'tests') }} strategy: @@ -31,7 +34,7 @@ jobs: - os: ubuntu-18.04 compiler: gcc library: shared - checks: doc+tests + checks: abi+doc+tests - os: ubuntu-18.04 compiler: clang library: static @@ -60,6 +63,10 @@ jobs: run: | echo -n '::set-output name=ccache::' echo 'ccache-${{ matrix.config.os }}-${{ matrix.config.compiler }}-${{ matrix.config.cross }}-'$(date -u +%Y-w%W) + echo -n '::set-output name=libabigail::' + echo 'libabigail-${{ matrix.config.os }}' + echo -n '::set-output name=abi::' + echo 'abi-${{ matrix.config.os }}-${{ matrix.config.compiler }}-${{ matrix.config.cross }}-${{ env.LIBABIGAIL_VERSION }}-${{ env.REF_GIT_TAG }}' - name: Retrieve ccache cache uses: actions/cache@v2 with: @@ -67,10 +74,30 @@ jobs: key: ${{ steps.get_ref_keys.outputs.ccache }}-${{ github.ref }} restore-keys: | ${{ steps.get_ref_keys.outputs.ccache }}-refs/heads/main + - name: Retrieve libabigail cache + id: libabigail-cache + uses: actions/cache@v2 + if: env.ABI_CHECKS == 'true' + with: + path: libabigail + key: ${{ steps.get_ref_keys.outputs.libabigail }} + - name: Retrieve ABI reference cache + uses: actions/cache@v2 + if: env.ABI_CHECKS == 'true' + with: + path: reference + key: ${{ steps.get_ref_keys.outputs.abi }} + - name: Update APT cache + run: sudo apt update || true - name: Install packages run: sudo apt install -y ccache libnuma-dev python3-setuptools - python3-wheel python3-pip ninja-build libbsd-dev libpcap-dev - libibverbs-dev libcrypto++-dev libfdt-dev libjansson-dev + python3-wheel python3-pip python3-pyelftools ninja-build libbsd-dev + libpcap-dev libibverbs-dev libcrypto++-dev libfdt-dev libjansson-dev + libarchive-dev + - name: Install libabigail build dependencies if no cache is available + if: env.ABI_CHECKS == 'true' && steps.libabigail-cache.outputs.cache-hit != 'true' + run: sudo apt install -y autoconf automake libtool pkg-config libxml2-dev + libdw-dev - name: Install i386 cross compiling packages if: env.BUILD_32BIT == 'true' run: sudo apt install -y gcc-multilib @@ -78,6 +105,9 @@ jobs: if: env.AARCH64 == 'true' run: sudo apt install -y gcc-aarch64-linux-gnu libc6-dev-arm64-cross pkg-config-aarch64-linux-gnu + - name: Install test tools packages + if: env.AARCH64 != 'true' || env.RUN_TESTS == 'true' + run: sudo apt install -y gdb - name: Install doc generation packages if: env.BUILD_DOCS == 'true' run: sudo apt install -y doxygen graphviz python3-sphinx @@ -98,3 +128,4 @@ jobs: build/meson-logs/testlog.txt build/.ninja_log build/meson-logs/meson-log.txt + build/gdb.log