Skip to content

Commit

Permalink
ci(solver): run tests with different width in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
arbimo committed Jan 6, 2025
1 parent dbbeccd commit 069b49b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 19 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/aries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ jobs:
fetch-depth: 0
- uses: dtolnay/rust-toolchain@stable
- run: cargo test
- name: Test with i64 int type
run: cargo test --features aries/i64
- name: Test with i128 int type
run: cargo test --features aries/i128

lints:
name: Rustfmt and Clippy
Expand Down
19 changes: 0 additions & 19 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ set dotenv-load := true

ci: ci-up-solve ci-up-val ci-ipc

test: test-i32 test-i64 test-i128 test-i64_i128

# Run planning tests for UP integration
ci-up-solve:
Expand All @@ -29,21 +28,3 @@ up-export problem:
# Solve specific IPC problems
ipc-solve +problem:
ARIES_UP_ASSUME_REALS_ARE_INTS=true python3 ci/ipc.py {{problem}}

# Run tests using i32 as IntCst
test-i32:
cargo test

# Run tests using i64 as IntCst
test-i64:
cargo test --features i64

# Run tests using i128 as IntCst
test-i128:
cargo test --features i128

# Verify that aries doesn't build with both i128 and i64 features
test-i64_i128:
@echo "checking i128 and i64 can't be enabled simultaneously"
if cargo test --features i128,i64; then echo "expected cargo test to fail when both i64 and i128 are enabled"; exit 1; fi
@echo "ok"

0 comments on commit 069b49b

Please sign in to comment.