Skip to content

Commit 7219b06

Browse files
committed
Move Rust workspace from data/ to ci/
The data/ folder now only contains source files (tools/, tags.yml, api/). The Rust code (render and pr-check crates) lives in ci/ alongside the workspace Cargo.toml and Cargo.lock. Updated references in Makefile, .github/workflows/pr-check.yml, .gitignore, data/README.md, and the stale comment at the top of README.md.
1 parent f641d72 commit 7219b06

20 files changed

Lines changed: 24 additions & 18 deletions

File tree

.github/workflows/pr-check.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches: [master]
66
paths:
77
- "data/tools/**.yml"
8+
- "ci/**"
89

910
jobs:
1011
pr-check:
@@ -32,18 +33,18 @@ jobs:
3233
path: |
3334
~/.cargo/registry
3435
~/.cargo/git
35-
data/target
36-
key: pr-check-${{ runner.os }}-${{ hashFiles('data/Cargo.lock') }}
36+
ci/target
37+
key: pr-check-${{ runner.os }}-${{ hashFiles('ci/Cargo.lock') }}
3738
restore-keys: |
3839
pr-check-${{ runner.os }}-
3940
4041
- name: Build pr-check
41-
run: cargo build --release --manifest-path data/Cargo.toml -p pr-check
42+
run: cargo build --release --manifest-path ci/Cargo.toml -p pr-check
4243

4344
- name: Run pr-check
4445
env:
4546
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4647
GITHUB_REPOSITORY: ${{ github.repository }}
4748
PR_NUMBER: ${{ github.event.pull_request.number }}
4849
run: |
49-
data/target/release/pr-check ${{ steps.changed.outputs.files }}
50+
ci/target/release/pr-check ${{ steps.changed.outputs.files }}

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
logcli-linux-amd64
22
logcli.zip
3-
data/target/
4-
data/pr-check/target/
3+
ci/target/
4+
ci/pr-check/target/

Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,23 @@ help:
1616

1717
# Main rendering targets
1818
render:
19-
cargo run --manifest-path data/Cargo.toml -p render -- --tags data/tags.yml --tools data/tools --md-out README.md --json-out data/api
19+
cargo run --manifest-path ci/Cargo.toml -p render -- --tags data/tags.yml --tools data/tools --md-out README.md --json-out data/api
2020

2121
render-skip-deprecated:
22-
cargo run --manifest-path data/Cargo.toml -p render -- --tags data/tags.yml --tools data/tools --md-out README.md --json-out data/api --skip-deprecated
22+
cargo run --manifest-path ci/Cargo.toml -p render -- --tags data/tags.yml --tools data/tools --md-out README.md --json-out data/api --skip-deprecated
2323

2424
# Development targets
2525
check:
26-
cargo check --manifest-path data/Cargo.toml
26+
cargo check --manifest-path ci/Cargo.toml
2727

2828
clippy:
29-
cargo clippy --manifest-path data/Cargo.toml -- -D warnings
29+
cargo clippy --manifest-path ci/Cargo.toml -- -D warnings
3030

3131
fmt:
32-
cargo fmt --manifest-path data/Cargo.toml
32+
cargo fmt --manifest-path ci/Cargo.toml
3333

3434
test:
35-
cargo test --manifest-path data/Cargo.toml
35+
cargo test --manifest-path ci/Cargo.toml
3636

3737
clean:
38-
cargo clean --manifest-path data/Cargo.toml
38+
cargo clean --manifest-path ci/Cargo.toml

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- 🚨🚨 DON'T EDIT THIS FILE DIRECTLY. Edit `data/tools.yml` instead. 🚨🚨 -->
1+
<!-- 🚨🚨 DON'T EDIT THIS FILE DIRECTLY. Add a file to `data/tools/` instead. 🚨🚨 -->
22

33
<a href="https://analysis-tools.dev/">
44
<img alt="Analysis Tools Website" src="https://raw.githubusercontent.com/analysis-tools-dev/assets/master/static/redesign.svg" />
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)