Skip to content

Commit

Permalink
fix: test 3
Browse files Browse the repository at this point in the history
  • Loading branch information
dirvine committed Dec 24, 2024
1 parent b9fb5a6 commit a41eb56
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/python-publish-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,17 @@ jobs:
run: |
mkdir -p build/autonomi
cp -r autonomi/* build/autonomi/
# Create a standalone Cargo.toml without workspace
# Copy all workspace dependencies locally
for dir in ant-*; do
if [ -d "$dir" ]; then
cp -r "$dir" "build/$dir"
fi
done
# Remove workspace configuration and update paths
cd build/autonomi
sed -i 's|^workspace = .*|workspace = false|' Cargo.toml
# Update dependency paths to be absolute
find . -name "Cargo.toml" -exec sed -i 's|path = "\.\./|path = "/home/runner/work/autonomi/autonomi/|g' {} \;
sed -i '/^workspace/d' Cargo.toml
# Update dependency paths to be relative to the build directory
find . -name "Cargo.toml" -exec sed -i 's|path = "\.\./|path = "../|g' {} \;
- name: Build sdist
uses: PyO3/maturin-action@v1
with:
Expand Down
14 changes: 10 additions & 4 deletions .github/workflows/python-publish-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,17 @@ jobs:
run: |
mkdir -p build/ant-node
cp -r ant-node/* build/ant-node/
# Create a standalone Cargo.toml without workspace
# Copy all workspace dependencies locally
for dir in ant-*; do
if [ -d "$dir" ]; then
cp -r "$dir" "build/$dir"
fi
done
# Remove workspace configuration and update paths
cd build/ant-node
sed -i 's|^workspace = .*|workspace = false|' Cargo.toml
# Update dependency paths to be absolute
find . -name "Cargo.toml" -exec sed -i 's|path = "\.\./|path = "/home/runner/work/autonomi/autonomi/|g' {} \;
sed -i '/^workspace/d' Cargo.toml
# Update dependency paths to be relative to the build directory
find . -name "Cargo.toml" -exec sed -i 's|path = "\.\./|path = "../|g' {} \;
- name: Build sdist
uses: PyO3/maturin-action@v1
with:
Expand Down

0 comments on commit a41eb56

Please sign in to comment.