Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up new repository #1

Merged
merged 23 commits into from
Dec 2, 2024
Merged
Changes from 1 commit
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
72 changes: 36 additions & 36 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -25,42 +25,42 @@ jobs:
strategy:
matrix:
cmd:
- test --profile=ci-dev -p cairo-lang-casm --features=serde,parity-scale-codec,schemars
- test --profile=ci-dev -p cairo-lang-casm --no-default-features --features=serde,parity-scale-codec
- test --profile=ci-dev -p cairo-lang-compiler
- test --profile=ci-dev -p cairo-lang-debug
- test --profile=ci-dev -p cairo-lang-defs
- test --profile=ci-dev -p cairo-lang-diagnostics
- test --profile=ci-dev -p cairo-lang-doc
- test --profile=ci-dev -p cairo-lang-eq-solver
- test --profile=ci-dev -p cairo-lang-filesystem
- test --profile=ci-dev -p cairo-lang-formatter
- test --profile=ci-dev -p cairo-lang-language-server
- test --profile=ci-dev -p cairo-lang-lowering
- test --profile=ci-dev -p cairo-lang-parser
- test --profile=ci-dev -p cairo-lang-plugins
- test --profile=ci-dev -p cairo-lang-proc-macros
- test --profile=ci-dev -p cairo-lang-project
- test --profile=ci-dev -p cairo-lang-runnable
- test --profile=ci-dev -p cairo-lang-runnable-utils
- test --profile=ci-dev -p cairo-lang-runner
- test --profile=ci-dev -p cairo-lang-semantic
- test --profile=ci-dev -p cairo-lang-sierra
- test --profile=ci-dev -p cairo-lang-sierra-ap-change
- test --profile=ci-dev -p cairo-lang-sierra-gas
- test --profile=ci-dev -p cairo-lang-sierra-generator
- test --profile=ci-dev -p cairo-lang-sierra-to-casm
- test --profile=ci-dev -p cairo-lang-sierra-type-size
- test --profile=ci-dev -p cairo-lang-starknet-classes
- test --profile=ci-dev -p cairo-lang-starknet
- test --profile=ci-dev -p cairo-lang-syntax
- test --profile=ci-dev -p cairo-lang-syntax-codegen
- test --profile=ci-dev -p cairo-lang-test-plugin
- test --profile=ci-dev -p cairo-lang-test-runner
- test --profile=ci-dev -p cairo-lang-test-utils
- test --profile=ci-dev -p cairo-lang-utils --features=serde,parity-scale-codec,schemars,testing,env_logger
- test --profile=ci-dev -p cairo-lang-utils --no-default-features --features=serde,parity-scale-codec
- test --profile=ci-dev -p tests
- test --profile=ci -p cairo-lang-casm --features=serde,parity-scale-codec,schemars
Arcticae marked this conversation as resolved.
Show resolved Hide resolved
- test --profile=ci -p cairo-lang-casm --no-default-features --features=serde,parity-scale-codec
- test --profile=ci -p cairo-lang-compiler
- test --profile=ci -p cairo-lang-debug
- test --profile=ci -p cairo-lang-defs
- test --profile=ci -p cairo-lang-diagnostics
- test --profile=ci -p cairo-lang-doc
- test --profile=ci -p cairo-lang-eq-solver
- test --profile=ci -p cairo-lang-filesystem
- test --profile=ci -p cairo-lang-formatter
- test --profile=ci -p cairo-lang-language-server
- test --profile=ci -p cairo-lang-lowering
- test --profile=ci -p cairo-lang-parser
- test --profile=ci -p cairo-lang-plugins
- test --profile=ci -p cairo-lang-proc-macros
- test --profile=ci -p cairo-lang-project
- test --profile=ci -p cairo-lang-runnable
- test --profile=ci -p cairo-lang-runnable-utils
- test --profile=ci -p cairo-lang-runner
- test --profile=ci -p cairo-lang-semantic
- test --profile=ci -p cairo-lang-sierra
- test --profile=ci -p cairo-lang-sierra-ap-change
- test --profile=ci -p cairo-lang-sierra-gas
- test --profile=ci -p cairo-lang-sierra-generator
- test --profile=ci -p cairo-lang-sierra-to-casm
- test --profile=ci -p cairo-lang-sierra-type-size
- test --profile=ci -p cairo-lang-starknet-classes
- test --profile=ci -p cairo-lang-starknet
- test --profile=ci -p cairo-lang-syntax
- test --profile=ci -p cairo-lang-syntax-codegen
- test --profile=ci -p cairo-lang-test-plugin
- test --profile=ci -p cairo-lang-test-runner
- test --profile=ci -p cairo-lang-test-utils
- test --profile=ci -p cairo-lang-utils --features=serde,parity-scale-codec,schemars,testing,env_logger
- test --profile=ci -p cairo-lang-utils --no-default-features --features=serde,parity-scale-codec
- test --profile=ci -p tests
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -2,16 +2,16 @@
# External dependencies are built with optimisation enabled,
# while crates in this workspace are built with `dev` profile and full debug info.
# This is a trade-off between build time and e2e test time.
[profile.ci-dev]
[profile.ci]
inherits = "dev"
incremental = false
[profile.ci-dev.package."*"] # external dependencies
[profile.ci.package."*"] # external dependencies
opt-level = 1
[profile.ci-dev.package."tokio"]
[profile.ci.package."tokio"]
opt-level = 3
[profile.ci-dev.package."bimap"]
[profile.ci.package."bimap"]
opt-level = 3
[profile.ci-dev.package."rust-analyzer-salsa"]
[profile.ci.package."rust-analyzer-salsa"]
opt-level = 3

[workspace]
2 changes: 1 addition & 1 deletion scripts/cairo_fmt.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

cargo run --profile=ci-dev --bin cairo-format -- --recursive "$@"
cargo run --profile=ci --bin cairo-format -- --recursive "$@"
4 changes: 2 additions & 2 deletions scripts/cairo_test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash

cargo run --profile=ci-dev --bin cairo-test -- corelib/ &&
cargo run --profile=ci-dev --bin cairo-test -- tests/bug_samples/ --starknet
cargo run --profile=ci --bin cairo-test -- corelib/ &&
cargo run --profile=ci --bin cairo-test -- tests/bug_samples/ --starknet