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

CI execution time improvements #46

Merged
merged 2 commits into from
May 27, 2024
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
10 changes: 8 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,18 @@ jobs:
run: RUSTFLAGS="-D warnings" cargo build --locked -q -p polka-storage-runtime
- name: Build node with runtime-benchmark feature
run: RUSTFLAGS="-D warnings" cargo build --locked -q -p polka-storage-node --features runtime-benchmarks
- name: Build in release mode
run: RUSTFLAGS="-D warnings" cargo build --locked -q --release
- name: Build in dev mode
run: RUSTFLAGS="-D warnings" cargo build --locked -q
- name: Cargo clippy
run: cargo clippy --locked -q --no-deps -- -D warnings
- name: Run tests
run: RUSTFLAGS="-D warnings" cargo test --locked -q --workspace
- name: Build in release mode
# Run only on merge to the protected branches
if: |
contains(github.ref, 'develop') ||
contains(github.ref, 'main')
run: RUSTFLAGS="-D warnings" cargo build --locked -q --release
- name: Failure handling
if: failure()
run: |
Expand Down
Loading