Skip to content

Commit

Permalink
Use shared target directory
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed Aug 14, 2022
1 parent 9b211e4 commit 85a445b
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Install dylint-link
run: cargo install dylint-link

- name: Prettier
run: |
npm install -g prettier && prettier --check '**/*.md' '**/*.yml'
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
target/
/target
3 changes: 3 additions & 0 deletions lints/arbitrary_cpi/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[build]
target-dir = "../../target"

[target.aarch64-apple-darwin]
linker = "dylint-link"

Expand Down
3 changes: 3 additions & 0 deletions lints/duplicate_mutable_accounts/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[build]
target-dir = "../../target"

[target.aarch64-apple-darwin]
linker = "dylint-link"

Expand Down
3 changes: 3 additions & 0 deletions lints/insecure_account_close/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[build]
target-dir = "../../target"

[target.aarch64-apple-darwin]
linker = "dylint-link"

Expand Down
3 changes: 3 additions & 0 deletions lints/missing_owner_check/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[build]
target-dir = "../../target"

[target.aarch64-apple-darwin]
linker = "dylint-link"

Expand Down
3 changes: 3 additions & 0 deletions lints/missing_signer_check/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[build]
target-dir = "../../target"

[target.aarch64-apple-darwin]
linker = "dylint-link"

Expand Down
3 changes: 3 additions & 0 deletions lints/type_cosplay/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[build]
target-dir = "../../target"

[target.aarch64-apple-darwin]
linker = "dylint-link"

Expand Down
4 changes: 3 additions & 1 deletion scripts/clippy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ WORKSPACE="$(realpath "$SCRIPTS"/..)"
cd "$WORKSPACE"

for X in . lints/*; do
cargo clippy --manifest-path "$X"/Cargo.toml --workspace --tests -- \
pushd "$X"
cargo clippy --workspace --tests -- \
-D warnings \
-W clippy::pedantic
popd
done

0 comments on commit 85a445b

Please sign in to comment.