From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 64BC0A0544; Tue, 7 Jun 2022 12:47:23 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B992142B86; Tue, 7 Jun 2022 12:46:38 +0200 (CEST) Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) by mails.dpdk.org (Postfix) with ESMTP id 5A4DB42905 for ; Tue, 7 Jun 2022 12:46:35 +0200 (CEST) Received: by mail-lf1-f41.google.com with SMTP id h23so27658933lfe.4 for ; Tue, 07 Jun 2022 03:46:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=UQsVG5akkRgJ4jEe8mm3djkWeWs9iOOveiQ+LM1fju0=; b=rdP32wpdiqwd9BzuMQf7fLMQclVzxhB8Iyil+eH4RSjOU8kJW6NpXns5DJ0wiKOa+A O1MQVQ/Ss4qA7D6/ZWs46UWDk3lQ5cIlnknIASKmOqUwpygZv5XTIas1yvURuEyQBTlH 8g4WhqvvXDv8T4VjlJT33Zr7FfHuBBM666Z3qpSu9zf05IfGyWtbQzjHV9SB1IT7dr7p qkCAr5WclNyR28rvfolnAL4pziSTKWAwwF6Tund0/KY031h33xUrastHbwbvJd0aydf0 ueu7Glf3NF8UejtCe5PXC0qmWn83lY/sirs82DrXu1PZ6KinEicFmqnNS3Go+o45nSoJ OGsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=UQsVG5akkRgJ4jEe8mm3djkWeWs9iOOveiQ+LM1fju0=; b=cCIzqwC7fOgSP59+Oe4IHH05C8rka/JZLLEHa6s4xjr0C7zbuhGuYAMKh0xU2uow4z 7U3rPXY2faGOXN2F/YrSbOdLQy7NyCNCe40hnrJ4Sl5TDfzBiKbyxQKltNKG+dBjMcSp +4bz9nzxgYcjp3YY4F8IQLjJvBSvK26eFpEMgka943mDP8cNAXOBeE8fl3BFT1rmGhT2 9dxCbDep7ltfb3bUv2SxJWk/EZnb/13j2defgrChcuMoutqV4XFQGPahEsGrb8CEb5Cs rNbhzGlCAVpQrctyMFM/FSP437sotu50jsH///i+ZxDUnLFFz/pN4xvGvd6RWu7StfTJ pF3Q== X-Gm-Message-State: AOAM531DGCiypwM4Hi512ScXrKNp5U5nBKmwR3S2WAj5h0ibYf4M+/Mg LZhxKTxT0QbltEnC4CJs7ulu7w== X-Google-Smtp-Source: ABdhPJy2Ra2Fngh9SrgUqYjlK2x0Uk+mP4pL/ZNLyd+oaubFTisZhdekzvIqAdw9UG0CSU0g6b5Piw== X-Received: by 2002:a05:6512:3c90:b0:479:5a2f:bc4f with SMTP id h16-20020a0565123c9000b004795a2fbc4fmr3650801lfv.145.1654598794983; Tue, 07 Jun 2022 03:46:34 -0700 (PDT) Received: from localhost.localdomain (89-73-146-138.dynamic.chello.pl. [89.73.146.138]) by smtp.gmail.com with ESMTPSA id m16-20020a056512115000b00478f2f2f044sm3217272lfg.123.2022.06.07.03.46.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 03:46:34 -0700 (PDT) From: Stanislaw Kardach To: Aaron Conole Cc: Stanislaw Kardach , dev@dpdk.org, Frank Zhao , Sam Grove , mw@semihalf.com, upstream@semihalf.com, David Marchand Subject: [PATCH RESEND v4 8/8] ci: add RISCV64 cross compilation job Date: Tue, 7 Jun 2022 12:46:17 +0200 Message-Id: <20220607104617.153892-9-kda@semihalf.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220607104617.153892-1-kda@semihalf.com> References: <20220607104617.153892-1-kda@semihalf.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Checks cross-compilation using Ubuntu 20.04 x86. Signed-off-by: David Marchand Signed-off-by: Stanislaw Kardach --- .ci/linux-build.sh | 4 ++++ .github/workflows/build.yml | 11 ++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.ci/linux-build.sh b/.ci/linux-build.sh index 1de8962f0e..06104eca22 100755 --- a/.ci/linux-build.sh +++ b/.ci/linux-build.sh @@ -74,6 +74,10 @@ if [ "$PPC64LE" = "true" ]; then cross_file=config/ppc/ppc64le-power8-linux-gcc-ubuntu fi +if [ "$RISCV64" = "true" ]; then + cross_file=config/riscv/riscv64_linux_gcc +fi + if [ -n "$cross_file" ]; then OPTS="$OPTS --cross-file $cross_file" fi diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ad8ad1a187..7c8528cb04 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,6 +26,7 @@ jobs: MINI: ${{ matrix.config.mini != '' }} PPC64LE: ${{ matrix.config.cross == 'ppc64le' }} REF_GIT_TAG: v22.03 + RISCV64: ${{ matrix.config.cross == 'riscv64' }} RUN_TESTS: ${{ contains(matrix.config.checks, 'tests') }} strategy: @@ -74,6 +75,10 @@ jobs: compiler: gcc library: shared cross: ppc64le + - os: ubuntu-20.04 + compiler: gcc + library: shared + cross: riscv64 steps: - name: Checkout sources @@ -132,8 +137,12 @@ jobs: if: env.PPC64LE == 'true' run: sudo apt install -y gcc-powerpc64le-linux-gnu libc6-dev-ppc64el-cross pkg-config-powerpc-linux-gnu + - name: Install riscv64 cross compiling packages + if: env.RISCV64 == 'true' + run: sudo apt install -y gcc-riscv64-linux-gnu libc6-dev-riscv64-cross + pkg-config-riscv64-linux-gnu - name: Install test tools packages - if: env.AARCH64 != 'true' || env.PPC64LE != 'true' || env.RUN_TESTS == 'true' + if: env.AARCH64 != 'true' || env.PPC64LE != 'true' || env.RISCV64 != 'true' || env.RUN_TESTS == 'true' run: sudo apt install -y gdb - name: Install doc generation packages if: env.BUILD_DOCS == 'true' -- 2.30.2