Skip to content

Commit

Permalink
fix: update CI, makefile and add profile test-release (#439)
Browse files Browse the repository at this point in the history
  • Loading branch information
phklive authored Jan 26, 2024
1 parent 2191ce1 commit 6f856fa
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
matrix:
toolchain: [stable, nightly]
os: [ubuntu]
args: [--release --features 'concurrent,testing']
args: ["--profile test-release --features concurrent,testing"]
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
Expand Down
13 changes: 7 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
[workspace]
members = [
"miden-lib",
"miden-tx",
"mock",
"objects",
]
members = ["miden-lib", "miden-tx", "mock", "objects"]
resolver = "2"

[profile.release]
codegen-units = 1
lto = true

[profile.test-release]
inherits = "release"
debug = true
debug-assertions = true
overflow-checks = true

[profile.bench]
codegen-units = 1
lto = true
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
PROFILE_TEST=--profile test-release
FEATURES_CONCURRENT_TESTING=--features concurrent,testing

watch:
cargo watch -w miden-lib/asm -x build

test:
cargo test --release --features concurrent,testing
cargo test $(PROFILE_TEST) $(FEATURES_CONCURRENT_TESTING)

0 comments on commit 6f856fa

Please sign in to comment.