mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix(ci): remove import path from type names on compact-codec (#12125)
This commit is contained in:
4
.github/workflows/compact.yml
vendored
4
.github/workflows/compact.yml
vendored
@ -36,7 +36,9 @@ jobs:
|
||||
ref: ${{ github.base_ref || 'main' }}
|
||||
# On `main` branch, generates test vectors and serializes them to disk using `Compact`.
|
||||
- name: Generate compact vectors
|
||||
run: ${{ matrix.bin }} -- test-vectors compact --write
|
||||
run: |
|
||||
${{ matrix.bin }} -- test-vectors compact --write &&
|
||||
for f in ./testdata/micro/compact/*; do mv "$f" "$(dirname "$f")/$(basename "$f" | awk -F '__' '{print $NF}')"; done
|
||||
- name: Checkout PR
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
|
||||
@ -267,5 +267,5 @@ where
|
||||
}
|
||||
|
||||
pub fn type_name<T>() -> String {
|
||||
std::any::type_name::<T>().replace("::", "__")
|
||||
std::any::type_name::<T>().split("::").last().unwrap_or(std::any::type_name::<T>()).to_string()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user