Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
schilkp committed Nov 18, 2024
1 parent 63fe71b commit 76c44cd
Show file tree
Hide file tree
Showing 37 changed files with 17 additions and 17 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci-conv.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ci-conv
name: ci-tools

on:
push:
Expand All @@ -8,7 +8,7 @@ on:
workflow_dispatch:

jobs:
conv-cargo-test:
tools-cargo-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -20,10 +20,10 @@ jobs:
run: sudo apt-get install protobuf-compiler

- name: Cargo Test
working-directory: ${{github.workspace}}/conv/
working-directory: ${{github.workspace}}/tools/
run: cargo test --all

conv-fmt-check:
tools-fmt-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -32,10 +32,10 @@ jobs:
toolchain: stable
components: rustfmt
- name: Format Check
working-directory: ${{github.workspace}}/conv/
working-directory: ${{github.workspace}}/tools/
run: cargo fmt -- --check

conv-clippy-check:
tools-clippy-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -48,5 +48,5 @@ jobs:
run: sudo apt-get install protobuf-compiler

- name: Lint
working-directory: ${{github.workspace}}/conv/
working-directory: ${{github.workspace}}/tools/
run: cargo clippy --all-features -- -D warnings
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ The documentation for Tonbandgerät can be found in the `docs/` folder and compi
by running `mdbook build` in `docs/`. The latest version of the documentation can also be viewed online [here](https://schilk.co/Tonbandgeraet/docs/index.html).

## Trace Converter + Viewing
The trace converter is written in rust, can be found [here](https://github.com/schilkp/Tonbandgeraet/tree/main/conv). For convenience, there is
The trace converter is written in rust, can be found [here](https://github.com/schilkp/Tonbandgeraet/tree/main/tools). For convenience, there is
also a WASM version with web frontend, which runs in the browser and can be found [here](https://schilk.co/Tonbandgeraet/).

## Licensing
The [target tracer sources](https://github.com/schilkp/Tonbandgeraet/tree/main/tband) and [documentation](https://github.com/schilkp/Tonbandgeraet/tree/main/docs) are
released under the [MIT License](https://github.com/schilkp/Tonbandgeraet/blob/main/tband/LICENSE). All conversion and
analysis tools, such as the [decoder and converter](https://github.com/schilkp/Tonbandgeraet/tree/main/conv/tband-conv),
the [CLI](https://github.com/schilkp/Tonbandgeraet/tree/main/conv/tband-cli), and the
[web converter](https://github.com/schilkp/Tonbandgeraet/tree/main/web) are released under the [GNU GPL3 License](https://github.com/schilkp/Tonbandgeraet/blob/main/conv/tband-cli/LICENSE).
analysis tools, such as the [decoder and converter](https://github.com/schilkp/Tonbandgeraet/tree/main/tools/tband-conv),
the [CLI](https://github.com/schilkp/Tonbandgeraet/tree/main/tools/tband-cli), and the
[web converter](https://github.com/schilkp/Tonbandgeraet/tree/main/web) are released under the [GNU GPL3 License](https://github.com/schilkp/Tonbandgeraet/blob/main/tools/tband-cli/LICENSE).

---
## Status
Expand Down
4 changes: 2 additions & 2 deletions codegen/codegen/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,13 @@ def main():
)
gen_c_tests.gen(groups, c_test_file)

rs_crate_dir = abspath(join(script_loc, "..", "..", "conv", "tband-conv"))
rs_crate_dir = abspath(join(script_loc, "..", "..", "tools", "tband-conv"))
rs_decoder_file = abspath(
join(
script_loc,
"..",
"..",
"conv",
"tools",
"tband-conv",
"src",
"decode",
Expand Down
2 changes: 1 addition & 1 deletion docs/doc/tband_cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
The trace converter and CLI is written in rust 🦀. To compile and run `tband-cli` locally, first you
need to [download and install rust](https://www.rust-lang.org/learn/get-started) if you don't already have it.

Then, open the [`./conv/tband-cli`](https://github.com/schilkp/Tonbandgeraet/tree/main/conv/tband-cli) folder.
Then, open the [`./tools/tband-cli`](https://github.com/schilkp/Tonbandgeraet/tree/main/tools/tband-cli) folder.

Now you have two options. To compile & install `tband-cli`, run:

Expand Down
2 changes: 1 addition & 1 deletion docs/update_cli_help.bash
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ cd "$(dirname "$0")"
script_dir="$(pwd)"

# Grab jelp messages
cd ../conv/
cd ../tools/
main_help=$(cargo run -- --help)
conv_help=$(cargo run -- conv --help)
dump_help=$(cargo run -- dump --help)
Expand Down
2 changes: 1 addition & 1 deletion tests/baremetal_integration/test.bash
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ cd "$script_dir"

echo "Dumping trace.."
cd "$script_dir"
cd ../../conv/tband-cli
cd ../../tools/tband-cli
cargo run -- dump --format bin --mode bare-metal "${script_dir}"/trace.bin > "${script_dir}/dump"

cd "$script_dir"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion web/tband-wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ wasm-bindgen = { version = "0.2.84"}
# code size when deploying.
# console_error_panic_hook = { version = "0.1.7", optional = true }

tband_conv = { path = "../../conv/tband-conv" }
tband_conv = { path = "../../tools/tband-conv" }
log = { version = "0.4.21", features = ["std"] }
console_log = "1.0.0"
web-sys = { version = "0.3.69", features = ["Document", "Window", "Element", "HtmlElement", "HtmlDivElement", "CustomEvent", "CustomEventInit"] }
Expand Down

0 comments on commit 76c44cd

Please sign in to comment.