Skip to content

Commit 48e0848

Browse files
Use release builds in CI
1 parent 398d22b commit 48e0848

2 files changed

Lines changed: 12 additions & 18 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@ jobs:
1818
- name: Ensure there are no warnings with Clippy
1919
run: cargo clippy --all -- -Dwarnings
2020

21-
- name: Check if the configuration is correct
22-
run: |
23-
cargo run -- create-lists
24-
cargo run -- check-config
25-
2621
test:
2722
name: Testing
2823
strategy:
@@ -41,13 +36,13 @@ jobs:
4136

4237
- name: Build Crater
4338
shell: bash
44-
run: cargo build
39+
run: cargo build --release
4540

4641
- name: Run Crater tests
4742
shell: bash
4843
run: |
49-
cargo run -- create-lists
50-
cargo test
44+
cargo run --release -- create-lists
45+
cargo test --release
5146
5247
minicrater:
5348
name: Minicrater
@@ -64,8 +59,8 @@ jobs:
6459
- name: Run minicrater
6560
shell: bash
6661
run: |
67-
cargo run -- create-lists
68-
cargo test -- --ignored --nocapture --test-threads 1
62+
cargo run --release -- create-lists
63+
cargo test --release -- --ignored --nocapture --test-threads 1
6964
env:
7065
MINICRATER_FAST_WORKSPACE_INIT: 1
7166
MINICRATER_SHOW_OUTPUT: 1

.github/workflows/pr.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ jobs:
1717
- name: Ensure there are no warnings with Clippy
1818
run: cargo clippy --all -- -Dwarnings
1919

20-
- name: Check if the configuration is correct
21-
run: |
22-
cargo run -- create-lists
23-
cargo run -- check-config
24-
2520
test:
2621
name: Linux testing
2722
runs-on: ubuntu-latest
@@ -32,12 +27,16 @@ jobs:
3227
run: rustup update nightly && rustup default nightly
3328

3429
- name: Build Crater
35-
run: cargo build
30+
run: cargo build --release
31+
32+
- name: Check if the configuration is correct
33+
run: |
34+
cargo run --release -- create-lists
35+
cargo run --release -- check-config
3636
3737
- name: Run Crater tests
3838
run: |
39-
cargo run -- create-lists
40-
cargo test
39+
cargo test --release
4140
4241
# Note: this job is used so that there is a job named "conclusion" both in the PR and merge queue
4342
# CI. Otherwise, it would not be possible for PR CI to succeed.

0 commit comments

Comments
 (0)