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 8E85DA0093; Tue, 10 May 2022 17:09:15 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3B06042850; Tue, 10 May 2022 17:08:33 +0200 (CEST) Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com [209.85.208.181]) by mails.dpdk.org (Postfix) with ESMTP id 2C2B042873 for ; Tue, 10 May 2022 17:08:32 +0200 (CEST) Received: by mail-lj1-f181.google.com with SMTP id m23so21217990ljc.0 for ; Tue, 10 May 2022 08:08:32 -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=Rl8GIt2/t4wm6UzUMa3bu3jelY3ET/TRNixQE47I1aS3GwmM9OKZOA0JGCQnejdfKa SApYYK80lHUEG26EFiepKTJBvBgJrEgzJCzpkSWwRSCKA/Z/35VY+1PbzvdhAJ9elD/F 5saMp+Qa9J+QhCxxz/GFm527ivmgpj1rlCkxZhKMp9L/ziQYaZH63PAO93FxhGQxdPQI 8GNChAT6yHcsVaQeN3PW11lZgKIwhBgJMB6N4yGeHUvskZaiwCvVXnFwMlTPwBFRaAfM j2QUS2u/CgUhTREOv1umCx/rMXbHdEKYShE4J07OtnKOLxMbnxgHBS5IlQADZfohVDCL A2xA== 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=xCpEL1ZeG3Zua+E048hXx+ym3UgnawTwrsBi17UUdkKurEACyPYKKUAaFcBd+FGK1Y XmO72JEr+WIHQlJ0kt1UpxhhHq0W0h4oqYV85D7XzQHn/BEq8qVDhSbPMGo+yzAvm22R kJAXgbZTVkejv9++P4PvmzcELqcWBisd+L9MsvR2lZzSFHa4zX5V12lvoF543UlEf7UO QCYIIgFjj4CwPRX2Z42Ej0O4NLu40SgNSyeC5jz1fpamXjAi6rl+Fph3r7XSeuBTU3Ad AAE7goD5W+AVTvfRPV7HzpD5YyBvQ5aY8UNKQ6YG4jtFkjQIN0d2VuQ9izGTLW4OFOSY 0Iwg== X-Gm-Message-State: AOAM533tVb/v6fd3cK12EevDKWdFXdNq5tY5w/c/H6M+WO/20Z59LViK 8G25XO9A9qCH76SL2K2Bkqg5kQ== X-Google-Smtp-Source: ABdhPJy7dcbGuKkdWelSRqTxjmRGU1DTtrx69j961p4MZ1bJbiYXSkua+t5e4p0SQx7t+whN7VTclg== X-Received: by 2002:a2e:9b57:0:b0:24f:12ea:fd26 with SMTP id o23-20020a2e9b57000000b0024f12eafd26mr13777812ljj.352.1652195310594; Tue, 10 May 2022 08:08:30 -0700 (PDT) Received: from toster.office.semihalf.net ([83.142.187.84]) by smtp.gmail.com with ESMTPSA id z4-20020a19e204000000b0047255d2117esm2311895lfg.173.2022.05.10.08.08.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 May 2022 08:08:28 -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 v2 8/8] ci: add RISCV64 cross compilation job Date: Tue, 10 May 2022 17:07:59 +0200 Message-Id: <20220510150759.525434-9-kda@semihalf.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220510150759.525434-1-kda@semihalf.com> References: <20220505173003.3242618-1-kda@semihalf.com> <20220510150759.525434-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 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' -- 2.30.2