Skip to content

Commit 85a445b

Browse files
committed
Use shared target directory
1 parent 9b211e4 commit 85a445b

File tree

9 files changed

+25
-2
lines changed

9 files changed

+25
-2
lines changed

Diff for: .github/workflows/ci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v2
1515

16+
- name: Install dylint-link
17+
run: cargo install dylint-link
18+
1619
- name: Prettier
1720
run: |
1821
npm install -g prettier && prettier --check '**/*.md' '**/*.yml'

Diff for: .gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
target/
1+
/target

Diff for: lints/arbitrary_cpi/.cargo/config.toml

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[build]
2+
target-dir = "../../target"
3+
14
[target.aarch64-apple-darwin]
25
linker = "dylint-link"
36

Diff for: lints/duplicate_mutable_accounts/.cargo/config.toml

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[build]
2+
target-dir = "../../target"
3+
14
[target.aarch64-apple-darwin]
25
linker = "dylint-link"
36

Diff for: lints/insecure_account_close/.cargo/config.toml

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[build]
2+
target-dir = "../../target"
3+
14
[target.aarch64-apple-darwin]
25
linker = "dylint-link"
36

Diff for: lints/missing_owner_check/.cargo/config.toml

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[build]
2+
target-dir = "../../target"
3+
14
[target.aarch64-apple-darwin]
25
linker = "dylint-link"
36

Diff for: lints/missing_signer_check/.cargo/config.toml

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[build]
2+
target-dir = "../../target"
3+
14
[target.aarch64-apple-darwin]
25
linker = "dylint-link"
36

Diff for: lints/type_cosplay/.cargo/config.toml

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[build]
2+
target-dir = "../../target"
3+
14
[target.aarch64-apple-darwin]
25
linker = "dylint-link"
36

Diff for: scripts/clippy.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ WORKSPACE="$(realpath "$SCRIPTS"/..)"
1414
cd "$WORKSPACE"
1515

1616
for X in . lints/*; do
17-
cargo clippy --manifest-path "$X"/Cargo.toml --workspace --tests -- \
17+
pushd "$X"
18+
cargo clippy --workspace --tests -- \
1819
-D warnings \
1920
-W clippy::pedantic
21+
popd
2022
done

0 commit comments

Comments
 (0)