From patchwork Tue May 10 15:48:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanislaw Kardach X-Patchwork-Id: 110997 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A9154A0093; Tue, 10 May 2022 17:49:47 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B217F42856; Tue, 10 May 2022 17:49:12 +0200 (CEST) Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) by mails.dpdk.org (Postfix) with ESMTP id 43E9E4284C for ; Tue, 10 May 2022 17:49:10 +0200 (CEST) Received: by mail-lf1-f45.google.com with SMTP id p10so30072989lfa.12 for ; Tue, 10 May 2022 08:49:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=kHykiELAya1nJvehqGU7Dnm8WrZegN2J4jCESD+SDpI=; b=2WVv0a3zls0DdNpFwQOYsZEwbB5SkaW+27RyEE91jWPUiMdHGMpaftT444ObfHhQ1Q sZIoUHUYXajzZGSVU9H7jgb4hPxiqWgGAO56fMWIBzSNts6QMTod5Lm7BF9g/9Z+5oJv nj1Ga+6ZDlnYn7WvY/qIiGEoxAmE0vXVQiByIEqytLxg8umJzB7klF2OIkXiX+MR1Xjk xhX7HAJo76Hy6rppipEFyiIcCICcmSrgwJlIQOGMhc6+kDEMcIhURTlotUK49L7txzvc sge8RFDiUV3hB2vrKDKfNZdd/+fQNutOma1Pv95aqmOZ4pPG6W42vxcmZN8LDcfdXg5E n7oQ== 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=kHykiELAya1nJvehqGU7Dnm8WrZegN2J4jCESD+SDpI=; b=R/oNxjMc6c7ln4erXbQAGZ29Bfxws9p7gB2VipYpkTczociXkO3glZ1qsR73dZaUBE 1Wymym2YZZJegebfd/6A9xywBO4jCFGDRFOv06+25b7o1MVXftOB6os4k0PZMU5Je6b4 ju+1/EaAih5lRbumSP+/9tynmrE4aZDsygxhCAjsnE4tc7bB5cd7DVDaZGrWwGUtPORr g+7BpDhawNmpSK64GshkcswgRE4/pOsUd4HHOh1nciYby5rjNK75npwJ+7OmW5uBrLpg Du1CUtPaDVVGJNye+/ZOQ4cxkjZpWWLjNqSPFgR9dhZSjycRbEvB/hHrWtgTAScXSaK5 3s8Q== X-Gm-Message-State: AOAM5321thJJIQdWxutvj9EJdikTgy8y0krQY4FfGn26qMYMRmyop0xN G7gZKx+g1HgouzCISwV1HmiwUQ== X-Google-Smtp-Source: ABdhPJxiD/f1qhxUmSgAHh9kF4hSFA1/stwHAIANGEwcKCggiddcyTyPTomS1ANd09ExkmPeoFVCcw== X-Received: by 2002:a05:6512:b92:b0:472:9cdd:f09f with SMTP id b18-20020a0565120b9200b004729cddf09fmr17117814lfv.54.1652197749905; Tue, 10 May 2022 08:49:09 -0700 (PDT) Received: from toster.office.semihalf.net ([83.142.187.84]) by smtp.gmail.com with ESMTPSA id i13-20020a2e540d000000b0024f3d1daeedsm2175051ljb.117.2022.05.10.08.49.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 May 2022 08:49:09 -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 v3 8/8] ci: add RISCV64 cross compilation job Date: Tue, 10 May 2022 17:48:49 +0200 Message-Id: <20220510154849.530872-9-kda@semihalf.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220510154849.530872-1-kda@semihalf.com> References: <20220510150759.525434-1-kda@semihalf.com> <20220510154849.530872-1-kda@semihalf.com> MIME-Version: 1.0 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 877243c9c8..aa5e9ec114 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 e2f94d786b..ca468da8fa 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,6 +25,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: @@ -73,6 +74,10 @@ jobs: compiler: gcc library: shared cross: ppc64le + - os: ubuntu-20.04 + compiler: gcc + library: shared + cross: riscv64 steps: - name: Checkout sources @@ -131,8 +136,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'