From patchwork Thu Sep 11 21:44:18 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 299 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1757627130; bh=un2uzBcq2kJOAag4vVdvWS9WR1UGY/eIc+VWkORdCYU=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=O+2PKAMVcCO3oPtw6Cqiy1JaDjazX5smg9ZuX0zF81tMni5KnkuyILTBTujjaowge YibWaPHrFf5VuKxsgkpK9GzSx180moRNxeZoWD91IhD+hRpXKU5HBp8HBxdgcQj2qA hybiIubGQCfBa5CRyQvvNDcuNSb+7g9QKzepM+8SoUfriUZNqH+hYiOE4g5t5xcc5x INUfkTHnliz9fmRYz7MzD7yozzLWcN0EvPEg5WjBRqcVH7PjWzhYslGZEV4Q3QfKIZ Nw8s3M/xzl9YECgpecrZYyLZU3jmus9rZ0FOmW2hunfUqL7Ma158luMkaI0JAJxLQE Yp8duOspaTUbw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 0A67267B16 for ; Thu, 11 Sep 2025 15:45:30 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id f-Nnwyp43T3Z for ; Thu, 11 Sep 2025 15:45:29 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1757627129; bh=un2uzBcq2kJOAag4vVdvWS9WR1UGY/eIc+VWkORdCYU=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=c5/fzAy88VlPNmHaMl/Z40A0Cm52/HTJRbYSNfpJZ6a6AeAPm3pmcVzd2malTaK6/ xDr8cuIzwWhXFUt15NcXusjsWP+e2vA4xmKU4fSePxjoXbzbwYWb7y8b9gaszIBg4u LU/OdqH42iP8SQ9dFcMK6e1c4MP/5e25oiU8vilG1ooLKrcG1GPJ50duoXeexHe52o DpB1QzMJj+9yIGOuSft42Y2i30xkQnFhWLJHstVxO862CXG1znD3a/EpAUoXfsk4qe tDoeV6o4KLL14J88OqRqFB9WRPYP4iBsx1OaNgQ/jprkH+YULigXYYgvj4iZ/IY/0F PcqoMgWsihDiw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id E68A9679D6 for ; Thu, 11 Sep 2025 15:45:29 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1757627128; bh=j/DgmT4OCM/5lXIQXrfAW4q4GADVQQ/htMmncCEhJqY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GxQVhIfC12TvSgeGF4DUt0QvbsoSVyKaVRcdFySx/rKBxstjsDDdOHYyBkYY1+wQt NnTQN631mmCNIxO8SWv4kmoolIz8wNros3jad5VoW0tbymzRarSbcVr13BMr6z+ra/ 931U40EEi1CjK83aJZi7tJmbD4afjB9/boXr99nRDHeiLHL4gx9Jl9Ip8IH2t9PUJP nz3/ltDb5ZiKJFNIaNHouHFjDMWOxvOSLJecNe1NFHX9748H9ivDf4P0dG5t4K8J1Q y2qMkBc4KrGGIl9QMYUXPcNjY+AZAj/lVWcwnJyeYCPYXSHf0cn6V9pGNndOsVCLE2 pxafX3VHwaVNA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 1029D67A5B; Thu, 11 Sep 2025 15:45:28 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id Yl365XuCIwPV; Thu, 11 Sep 2025 15:45:27 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1757627126; bh=X7dMxWm/U3Cz4ahvBo78I/8/e3BoBnbHHpyQc9R7fYM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q1+R5zcANsd/sAhree63Xc1UJznl1xCyz4hROuyk5G0zwaa7Omw6ifX3ekOqIE0zS wRMHJa0aLWBou73P2hPjl2Xq/vzQvYxnPvGxFPISLky8sjyzdrsDRF/bbklwixYPM6 inlFa7dtfMonKd9jVE7gWpZV6y7hNrR8X1gKRBW2J7fDra469c9lc3uUOARLjaDT7+ UxpLsdWzrgj8viz8SnaNwuv7e/yqTSsCNEqDysNHbBwXEL2r9KWQmjc4OjlmAD1m4b hoZiyGWoYRTcS6KEYi00Tx9mXdtiDI+2OtlyyExqPke0QxISiBLoXRLu+0JeFAXuhA ER7ioPSQQ2Cuw== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 46A0E679D6; Thu, 11 Sep 2025 15:45:26 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Thu, 11 Sep 2025 15:44:18 -0600 Message-ID: <20250911214425.3687188-15-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250911214425.3687188-1-sjg@u-boot.org> References: <20250911214425.3687188-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: RLVTCPMAJWIKIKMNROAPC45LX332FLWW X-Message-ID-Hash: RLVTCPMAJWIKIKMNROAPC45LX332FLWW X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Heinrich Schuchardt , Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 14/14] CI: Build the Rust examples List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass Add the Rust examples to the 'Examples' test suite, so that we can be sure they continue to build and run. Signed-off-by: Simon Glass --- .gitlab-ci.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3785e61ec3f..fbe56152d7a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -349,12 +349,19 @@ Examples: ./tools/buildman/buildman -T0 -o ${UBOOT_TRAVIS_BUILD_DIR} -w --board sandbox; set -e; - - echo "Building examples"; + - echo "Building C examples"; cd examples/ulib; make UBOOT_BUILD=${UBOOT_TRAVIS_BUILD_DIR} srctree=../.. - - echo "Running static"; + - echo "Running C static"; ./demo_static - - echo "Running dynamic"; + - echo "Running C dynamic"; + LD_LIBRARY_PATH=${UBOOT_TRAVIS_BUILD_DIR} ./demo + - echo "Building Rust examples"; + cd ../rust; + make UBOOT_BUILD=${UBOOT_TRAVIS_BUILD_DIR} srctree=../.. + - echo "Running Rust static"; + ./demo_static + - echo "Running Rust dynamic"; LD_LIBRARY_PATH=${UBOOT_TRAVIS_BUILD_DIR} ./demo # Template for running the 'make check' tools