10 shell: bash --noprofile --norc -exo pipefail {0}
14 name: ${{ join(matrix.config.*, '-') }}
15 runs-on: ${{ matrix.config.os }}
17 AARCH64: ${{ matrix.config.cross == 'aarch64' }}
18 ABI_CHECKS: ${{ contains(matrix.config.checks, 'abi') }}
19 BUILD_32BIT: ${{ matrix.config.cross == 'i386' }}
20 BUILD_DOCS: ${{ contains(matrix.config.checks, 'doc') }}
21 CC: ccache ${{ matrix.config.compiler }}
22 DEF_LIB: ${{ matrix.config.library }}
23 LIBABIGAIL_VERSION: libabigail-1.8
25 RUN_TESTS: ${{ contains(matrix.config.checks, 'tests') }}
49 # Note: common/cnxk is disabled for Ubuntu 18.04
50 # https://bugs.dpdk.org/show_bug.cgi?id=697
61 - name: Checkout sources
62 uses: actions/checkout@v2
63 - name: Generate cache keys
66 echo -n '::set-output name=ccache::'
67 echo 'ccache-${{ matrix.config.os }}-${{ matrix.config.compiler }}-${{ matrix.config.cross }}-'$(date -u +%Y-w%W)
68 echo -n '::set-output name=libabigail::'
69 echo 'libabigail-${{ matrix.config.os }}'
70 echo -n '::set-output name=abi::'
71 echo 'abi-${{ matrix.config.os }}-${{ matrix.config.compiler }}-${{ matrix.config.cross }}-${{ env.LIBABIGAIL_VERSION }}-${{ env.REF_GIT_TAG }}'
72 - name: Retrieve ccache cache
73 uses: actions/cache@v2
76 key: ${{ steps.get_ref_keys.outputs.ccache }}-${{ github.ref }}
78 ${{ steps.get_ref_keys.outputs.ccache }}-refs/heads/main
79 - name: Retrieve libabigail cache
81 uses: actions/cache@v2
82 if: env.ABI_CHECKS == 'true'
85 key: ${{ steps.get_ref_keys.outputs.libabigail }}
86 - name: Retrieve ABI reference cache
87 uses: actions/cache@v2
88 if: env.ABI_CHECKS == 'true'
91 key: ${{ steps.get_ref_keys.outputs.abi }}
92 - name: Update APT cache
93 run: sudo apt update || true
94 - name: Install packages
95 run: sudo apt install -y ccache libnuma-dev python3-setuptools
96 python3-wheel python3-pip python3-pyelftools ninja-build libbsd-dev
97 libpcap-dev libibverbs-dev libcrypto++-dev libfdt-dev libjansson-dev
99 - name: Install libabigail build dependencies if no cache is available
100 if: env.ABI_CHECKS == 'true' && steps.libabigail-cache.outputs.cache-hit != 'true'
101 run: sudo apt install -y autoconf automake libtool pkg-config libxml2-dev
103 - name: Install i386 cross compiling packages
104 if: env.BUILD_32BIT == 'true'
105 run: sudo apt install -y gcc-multilib
106 - name: Install aarch64 cross compiling packages
107 if: env.AARCH64 == 'true'
108 run: sudo apt install -y gcc-aarch64-linux-gnu libc6-dev-arm64-cross
109 pkg-config-aarch64-linux-gnu
110 - name: Install test tools packages
111 if: env.AARCH64 != 'true' || env.RUN_TESTS == 'true'
112 run: sudo apt install -y gdb
113 - name: Install doc generation packages
114 if: env.BUILD_DOCS == 'true'
115 run: sudo apt install -y doxygen graphviz python3-sphinx
116 python3-sphinx-rtd-theme
120 # Workaround on $HOME permissions as EAL checks them for plugin loading
122 - name: Build and test
123 run: .ci/linux-build.sh
124 - name: Upload logs on failure
126 uses: actions/upload-artifact@v2
128 name: meson-logs-${{ join(matrix.config.*, '-') }}
130 build/meson-logs/testlog.txt
132 build/meson-logs/meson-log.txt