Skip to content

Commit

Permalink
Adding cross architecture check within the node hub
Browse files Browse the repository at this point in the history
  • Loading branch information
haixuanTao committed Nov 19, 2024
1 parent 831eab2 commit b5ad879
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/node-hub-ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,11 @@ jobs:
if [[ "${{ runner.os }}" == "Linux" ]]; then
pip3 install "maturin[zig]"
## The CI/CD is sequential to limit the number of workers used.
# x86_64-unknown-linux-gnu
maturin publish --skip-existing --zig
# aarch64-unknown-linux-gnu
rustup target add aarch64-unknown-linux-gnu
maturin publish --target aarch64-unknown-linux-gnu --zig
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/node_hub_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ else
cargo clippy
cargo build
cargo test

# aarch64-unknown-linux-gnu
rustup target add aarch64-unknown-linux-gnu
cargo check --target aarch64-unknown-linux-gnu

# armv7-unknown-linux-musleabihf
rustup target add armv7-unknown-linux-musleabihf
cargo check --target armv7-unknown-linux-musleabihf
else
if [ -f "$dir/pyproject.toml" ]; then
echo "Running linting and tests for Python project in $dir..."
Expand Down

0 comments on commit b5ad879

Please sign in to comment.