[2/2] ci: use crossbuild-essential packages
Checks
Commit Message
The crossbuild-essential-<arch> packages contain all necessary
dependencies to cross-compile binaries for a given architecture
including C and C++ compilers. Therefore use those instead of listing
packages directly. This way C++ compiler is also installed and C++
include checks will be checked in CI for PowerPC and ARM.
Signed-off-by: Stanislaw Kardach <kda@semihalf.com>
---
.github/workflows/build.yml | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
Comments
On Tue, Jun 21, 2022 at 2:28 PM Stanislaw Kardach <kda@semihalf.com> wrote:
>
> The crossbuild-essential-<arch> packages contain all necessary
> dependencies to cross-compile binaries for a given architecture
> including C and C++ compilers. Therefore use those instead of listing
> packages directly. This way C++ compiler is also installed and C++
> include checks will be checked in CI for PowerPC and ARM.
>
> Signed-off-by: Stanislaw Kardach <kda@semihalf.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
@@ -128,15 +128,13 @@ jobs:
run: sudo apt install -y gcc-multilib g++-multilib
- name: Install aarch64 cross compiling packages
if: env.AARCH64 == 'true'
- run: sudo apt install -y gcc-aarch64-linux-gnu libc6-dev-arm64-cross
- pkg-config-aarch64-linux-gnu
+ run: sudo apt install -y crossbuild-essential-arm64
- name: Install mingw cross compiling packages
if: env.MINGW == 'true'
run: sudo apt install -y mingw-w64 mingw-w64-tools
- name: Install ppc64le cross compiling packages
if: env.PPC64LE == 'true'
- run: sudo apt install -y gcc-powerpc64le-linux-gnu libc6-dev-ppc64el-cross
- pkg-config-powerpc-linux-gnu
+ run: sudo apt install -y crossbuild-essential-ppc64el
- name: Install riscv64 cross compiling packages
if: env.RISCV64 == 'true'
run: sudo apt install -y crossbuild-essential-riscv64