Skip to content

Commit cc14edf

Browse files
committed
CI: Run the schemars job directly using cargo
The `Schemars` job calls the `run_task.sh` script only to do a single invocation of `cargo test` - just call cargo directly.
1 parent 1fb12e1 commit cc14edf

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

.github/workflows/rust.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,8 @@ jobs:
260260
uses: actions/checkout@v4
261261
- name: "Select toolchain"
262262
uses: dtolnay/rust-toolchain@stable
263-
- name: "Run test script"
264-
run: ./contrib/run_task.sh schemars
263+
- name: "Run schemars test"
264+
run: cd hashes/extended_tests/schemars && cargo test
265265

266266
Kani:
267267
name: Kani codegen - stable toolchain

contrib/run_task.sh

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,6 @@ main() {
100100
do_asan
101101
;;
102102

103-
schemars)
104-
# hashes crate only.
105-
do_schemars
106-
;;
107-
108103
*)
109104
err "Error: unknown task $task"
110105
;;
@@ -264,13 +259,6 @@ do_bench() {
264259
done
265260
}
266261

267-
# This is only relevant for hashes.
268-
do_schemars() {
269-
pushd "$REPO_DIR/hashes/extended_tests/schemars" > /dev/null
270-
cargo test
271-
popd > /dev/null
272-
}
273-
274262
# Note we do not use the recent lock file or `--locked` when running the wasm tests.
275263
do_wasm() {
276264
pushd "$REPO_DIR/hashes" > /dev/null

0 commit comments

Comments
 (0)