Skip to content

Commit 9ddaeb4

Browse files
whimboojgraham
authored andcommitted
Force Rust cache for GitHub workflow to cddl version 0.9.1
1 parent 1d58e92 commit 9ddaeb4

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ jobs:
2424
with:
2525
node-version: 16
2626
- name: Get cddl version
27-
run: curl -s https://crates.io/api/v1/crates/cddl | python3 -c "import sys, json; print(json.load(sys.stdin)['crate']['max_stable_version'])" | tee cddl.txt
27+
# Remove strict version requirement here and in the test script
28+
# once the CLI command works again.
29+
# See: https://github.com/anweiss/cddl/issues/213
30+
# run: curl -s https://crates.io/api/v1/crates/cddl | python3 -c "import sys, json; print(json.load(sys.stdin)['crate']['max_stable_version'])" | tee cddl.txt
31+
run: echo "0.9.1" > cddl.txt
2832
- name: "Cache rust binaries"
2933
uses: actions/cache@v3
3034
id: cache-cddl

scripts/test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ ROOT="$(dirname "$SCRIPT_DIR")"
66

77
if ! [ -x "$(command -v cddl)" ] || [ "$1" = "--upgrade" ]; then
88
echo 'Installing cddl'
9-
# Remove strict version requirement once the CLI command works again
9+
# Remove strict version requirement here and for the Rust cache
10+
# once the CLI command works again.
1011
# See: https://github.com/anweiss/cddl/issues/213
1112
cargo install cddl --version 0.9.1
1213
fi

0 commit comments

Comments
 (0)