Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 79 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,85 @@ jobs:
- name: Run tests (all features)
run: cargo test -p aptos-sdk --all-targets --all-features

test-linux-arm:
name: Test (Linux ARM64)
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v6

Comment on lines +81 to +86
Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test-linux-arm duplicates the same checkout/toolchain/cache/build/test steps already defined in the existing test job. This increases maintenance overhead (every future change to the test steps must be replicated across multiple jobs). Consider extending the existing test matrix (e.g., with include) to cover the ARM runner instead of defining a separate job, unless there’s a runner-specific deviation you need here.

Copilot uses AI. Check for mistakes.
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable

- name: Cache cargo
uses: Swatinem/rust-cache@v2

- name: Build
run: cargo build -p aptos-sdk --all-targets

- name: Run tests
run: cargo test -p aptos-sdk --all-targets

- name: Run tests (all features)
run: cargo test -p aptos-sdk --all-targets --all-features

test-macos-intel:
name: Test (macOS x86)
runs-on: macos-15-intel
steps:
- uses: actions/checkout@v6

Comment on lines +104 to +109
Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test-macos-intel repeats the same steps as the main test job. To reduce duplication and keep CI maintenance simpler, consider adding this runner to the existing test matrix (with an include entry for macos-15-intel) rather than maintaining a separate job with near-identical steps.

Copilot uses AI. Check for mistakes.
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable

- name: Cache cargo
uses: Swatinem/rust-cache@v2

- name: Build
run: cargo build -p aptos-sdk --all-targets

- name: Run tests
run: cargo test -p aptos-sdk --all-targets

- name: Run tests (all features)
run: cargo test -p aptos-sdk --all-targets --all-features

test-no-simd:
name: Test (Linux No SIMD - Docker Compatible)
runs-on: ubuntu-latest
env:
# Disable BLST assembly optimizations for portability
BLST_PORTABLE: "1"
# Target baseline x86-64 without AVX/AVX2 SIMD extensions.
# This simulates running in a Docker container on macOS ARM via
# QEMU x86 emulation, where advanced SIMD instructions are unavailable.
RUSTFLAGS: "-C target-cpu=x86-64"
Comment on lines +127 to +136
Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test-no-simd job description/comments (and the PR description) describe testing an Ubuntu Docker container running on macOS ARM under QEMU x86 emulation, but the workflow runs directly on ubuntu-latest (no Docker/QEMU involved). If the intention is only to simulate “no advanced SIMD” via BLST_PORTABLE/RUSTFLAGS, please adjust the job name/comments/PR description to reflect that; otherwise, update the job to actually exercise the Docker+QEMU path on an ARM runner.

Copilot uses AI. Check for mistakes.
steps:
- uses: actions/checkout@v6

- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable

- name: Cache cargo
uses: Swatinem/rust-cache@v2

- name: Build (default features)
run: cargo build -p aptos-sdk --all-targets

- name: Run tests (default features)
run: cargo test -p aptos-sdk --all-targets

- name: Build (all features)
run: cargo build -p aptos-sdk --all-targets --all-features

- name: Run tests (all features)
run: cargo test -p aptos-sdk --all-targets --all-features

test-features:
name: Test Feature Combinations
runs-on: ubuntu-latest
Expand Down
Loading