Skip to content

Commit 568044b

Browse files
Make ci-integration its own package to avoid rebuilding it
1 parent 5b938cb commit 568044b

11 files changed

Lines changed: 16 additions & 9 deletions

File tree

.github/workflows/integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,5 @@ jobs:
7575
- name: run integration tests
7676
env:
7777
TARGET: x86_64-unknown-linux-gnu
78-
run: cargo run --bin ci-integration integration ${{ matrix.integration }}
78+
run: cargo run -p ci-integration integration ${{ matrix.integration }}
7979
continue-on-error: ${{ matrix.allow-failure == true }}

.github/workflows/linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ jobs:
3838
- name: Build and Test
3939
env:
4040
RUSTFLAGS: -D warnings
41-
run: cargo run --bin ci-integration build-and-test
41+
run: cargo run -p ci-integration build-and-test

.github/workflows/mac.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ jobs:
3434
- name: Build and Test
3535
env:
3636
RUSTFLAGS: -D warnings
37-
run: cargo run --bin ci-integration build-and-test
37+
run: cargo run -p ci-integration build-and-test

.github/workflows/windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ jobs:
6060
- name: Build and Test
6161
env:
6262
RUSTFLAGS: -D warnings
63-
run: cargo run --bin ci-integration build-and-test
63+
run: cargo run --p ci-integration build-and-test

Cargo.lock

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
[package]
2-
32
name = "rustfmt-nightly"
43
version = "1.9.0"
54
description = "Tool to find and fix Rust formatting issues"
@@ -26,9 +25,8 @@ path = "src/format-diff/main.rs"
2625
name = "git-rustfmt"
2726
path = "src/git-rustfmt/main.rs"
2827

29-
[[bin]]
30-
name = "ci-integration"
31-
path = "ci/main.rs"
28+
[workspace]
29+
members = ["ci"]
3230

3331
[features]
3432
default = ["cargo-fmt", "rustfmt-format-diff"]
@@ -74,4 +72,3 @@ tempfile = "3.23.0"
7472
[package.metadata.rust-analyzer]
7573
# This package uses #[feature(rustc_private)]
7674
rustc_private = true
77-

ci/Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[package]
2+
name = "ci-integration"
3+
version = "0.0.1"
4+
edition = "2024"
5+
publish = false
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)