From aa4e64206d117786f649f7443a05660baf8cf774 Mon Sep 17 00:00:00 2001 From: David Irvine Date: Tue, 24 Dec 2024 01:42:58 +0000 Subject: [PATCH] fix: test 7 --- .github/workflows/python-publish-client.yml | 2 +- .github/workflows/python-publish-node.yml | 38 +++++---------------- 2 files changed, 9 insertions(+), 31 deletions(-) diff --git a/.github/workflows/python-publish-client.yml b/.github/workflows/python-publish-client.yml index c70a1306ef..a16d8de519 100644 --- a/.github/workflows/python-publish-client.yml +++ b/.github/workflows/python-publish-client.yml @@ -1,4 +1,4 @@ -name: Build and Publish Python Package +name: Build and Publish Python Client Package on: push: diff --git a/.github/workflows/python-publish-node.yml b/.github/workflows/python-publish-node.yml index 1ab9141ccd..83be126dda 100644 --- a/.github/workflows/python-publish-node.yml +++ b/.github/workflows/python-publish-node.yml @@ -162,29 +162,11 @@ jobs: fi done - # Create a new workspace Cargo.toml in the build directory + # Create a minimal workspace Cargo.toml in the build directory cat > build/Cargo.toml << EOL [workspace] resolver = "2" - members = [ - "ant-bootstrap", - "ant-build-info", - "ant-cli", - "ant-evm", - "ant-logging", - "ant-metrics", - "ant-networking", - "ant-node", - "ant-node-manager", - "ant-node-rpc-client", - "ant-protocol", - "ant-registers", - "ant-service-management", - "ant-token-supplies", - "autonomi", - "evmlib", - "test-utils" - ] + members = ["ant-node"] [workspace.lints.rust] arithmetic_overflow = "forbid" @@ -204,20 +186,14 @@ jobs: unused_async = "warn" unwrap_used = "warn" - [profile.dev] - debug = 0 - strip = "debuginfo" - - [workspace.metadata.release] - pre-release-commit-message = "chore(release): release commit, tags, deps and changelog updates" - publish = false - push = false - tag = false - [workspace.dependencies] backtrace = "=0.3.71" EOL + # Remove workspace references from the package's Cargo.toml + cd build/ant-node + sed -i '/^workspace/d' Cargo.toml + # Update all dependency paths to be absolute find build -name "Cargo.toml" -exec sed -i "s|path = \"\.\./|path = \"/home/runner/work/autonomi/autonomi/build/|g" {} \; @@ -226,6 +202,8 @@ jobs: ls -la build/ echo "Contents of workspace Cargo.toml:" cat build/Cargo.toml + echo "Contents of ant-node Cargo.toml:" + cat build/ant-node/Cargo.toml - name: Build sdist uses: PyO3/maturin-action@v1 with: