From ff2b051b0afcb29a320583463b190216bbf80be4 Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Fri, 6 Dec 2024 04:21:39 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=AA=20Add=20a=20Maturin-based=20packag?= =?UTF-8?q?e=20to=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/reusable-smoke-test.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/reusable-smoke-test.yml b/.github/workflows/reusable-smoke-test.yml index 29f52d5..1b59efa 100644 --- a/.github/workflows/reusable-smoke-test.yml +++ b/.github/workflows/reusable-smoke-test.yml @@ -96,6 +96,24 @@ jobs: readme = "README.md" - name: Build the stub package sdist and wheel distributions run: python3 -m build + - name: Create the Rust package directory + run: mkdir -pv rust-example + - name: Initialize a Rust project + run: cargo init + working-directory: rust-example + - name: Populate the Rust package `pyproject.toml` + run: echo "$CONTENTS" > pyproject.toml + env: + CONTENTS: | + [build-system] + requires = [ + "maturin ~=1.0", + ] + build-backend = "maturin" + working-directory: rust-example + - name: Build the stub package sdist and wheel distributions + run: python3 -m build -o ../dist/ + working-directory: rust-example - name: Register the stub package in devpi run: | for dist in dist/*.tar.gz