Skip to content

Commit c667d88

Browse files
authored
ci: improve test-frozen-abi script (#440)
* ci: update test-frozen-abi script * add solana-short-vec/frozen-abi to message * improve format * use cargo hack
1 parent 8592e2f commit c667d88

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,11 @@ jobs:
421421
cargo-cache-key: cargo-nightly-miri
422422
cargo-cache-fallback-key: cargo-nightly
423423

424+
- name: Install cargo-hack
425+
uses: taiki-e/cache-cargo-install-action@v2
426+
with:
427+
tool: cargo-hack
428+
424429
- name: Run frozen-abi tests
425430
run: ./scripts/test-frozen-abi.sh
426431

message/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ frozen-abi = [
2525
"solana-address/frozen-abi",
2626
"solana-hash/frozen-abi",
2727
"serde",
28+
"solana-short-vec/frozen-abi",
2829
]
2930
serde = [
3031
"dep:serde",

scripts/test-frozen-abi.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ here="$(dirname "$0")"
55
src_root="$(readlink -f "${here}/..")"
66
cd "${src_root}"
77

8-
./cargo nightly test --features frozen-abi --lib -- test_abi_ --nocapture
8+
./cargo nightly hack --features frozen-abi --ignore-unknown-features test --lib -- test_abi_ --nocapture

0 commit comments

Comments
 (0)