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') }}
59 - name: Checkout sources
60 uses: actions/checkout@v2
61 - name: Generate cache keys
64 echo -n '::set-output name=ccache::'
65 echo 'ccache-${{ matrix.config.os }}-${{ matrix.config.compiler }}-${{ matrix.config.cross }}-'$(date -u +%Y-w%W)
66 echo -n '::set-output name=libabigail::'
67 echo 'libabigail-${{ matrix.config.os }}'
68 echo -n '::set-output name=abi::'
69 echo 'abi-${{ matrix.config.os }}-${{ matrix.config.compiler }}-${{ matrix.config.cross }}-${{ env.LIBABIGAIL_VERSION }}-${{ env.REF_GIT_TAG }}'
70 - name: Retrieve ccache cache
71 uses: actions/cache@v2
74 key: ${{ steps.get_ref_keys.outputs.ccache }}-${{ github.ref }}
76 ${{ steps.get_ref_keys.outputs.ccache }}-refs/heads/main
77 - name: Retrieve libabigail cache
79 uses: actions/cache@v2
80 if: env.ABI_CHECKS == 'true'
83 key: ${{ steps.get_ref_keys.outputs.libabigail }}
84 - name: Retrieve ABI reference cache
85 uses: actions/cache@v2
86 if: env.ABI_CHECKS == 'true'
89 key: ${{ steps.get_ref_keys.outputs.abi }}
90 - name: Install packages
91 run: sudo apt install -y ccache libnuma-dev python3-setuptools
92 python3-wheel python3-pip ninja-build libbsd-dev libpcap-dev
93 libibverbs-dev libcrypto++-dev libfdt-dev libjansson-dev
94 - name: Install libabigail build dependencies if no cache is available
95 if: env.ABI_CHECKS == 'true' && steps.libabigail-cache.outputs.cache-hit != 'true'
96 run: sudo apt install -y autoconf automake libtool pkg-config libxml2-dev
98 - name: Install i386 cross compiling packages
99 if: env.BUILD_32BIT == 'true'
100 run: sudo apt install -y gcc-multilib
101 - name: Install aarch64 cross compiling packages
102 if: env.AARCH64 == 'true'
103 run: sudo apt install -y gcc-aarch64-linux-gnu libc6-dev-arm64-cross
104 pkg-config-aarch64-linux-gnu
105 - name: Install doc generation packages
106 if: env.BUILD_DOCS == 'true'
107 run: sudo apt install -y doxygen graphviz python3-sphinx
108 python3-sphinx-rtd-theme
112 # Workaround on $HOME permissions as EAL checks them for plugin loading
114 - name: Build and test
115 run: .ci/linux-build.sh
116 - name: Upload logs on failure
118 uses: actions/upload-artifact@v2
120 name: meson-logs-${{ join(matrix.config.*, '-') }}
122 build/meson-logs/testlog.txt
124 build/meson-logs/meson-log.txt