Skip to content

Commit

Permalink
CI: Use recent lock
Browse files Browse the repository at this point in the history
  • Loading branch information
uncomputable committed Mar 14, 2024
1 parent ecb79aa commit 207fd32
Showing 1 changed file with 7 additions and 19 deletions.
26 changes: 7 additions & 19 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,30 +61,18 @@ jobs:
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- name: Set dependencies
run: cp Cargo-recent.lock Cargo.lock
- name: Running cargo test
env:
FEATURES: bitcoin elements test-utils
run: |
if cargo --version | grep "1\.58"; then
# 1.0.100 uses syn 2.0 which requires edition 2021
cargo update -p serde_json --precise 1.0.99
# 1.0.157 uses syn 2.0
cargo update -p serde --precise 1.0.156
# 1.0.31 uses proc-macro 1.0.66
cargo update -p quote --precise 1.0.30
# 1.0.66 uses edition 2021
cargo update -p proc-macro2 --precise 1.0.65
# 1.8.0 requires cargo 1.60+
cargo update -p regex --precise 1.7.0
# 1.5.0 uses edition 2021
cargo update -p byteorder --precise 1.4.3
fi
for f in $FEATURES; do echo "Features: $f" && cargo test --no-default-features --features="$f"; done
for f in $FEATURES; do echo "Features: $f" && cargo test --locked --no-default-features --features="$f"; done
cd simplicity-sys
cargo test --no-default-features
cargo test --features="test-utils"
echo "No default features" && cargo test --no-default-features
echo "All features" && cargo test --all-features
cargo test --locked --no-default-features
cargo test --locked --features="test-utils"
echo "No default features" && cargo test --locked --no-default-features
echo "All features" && cargo test --locked --all-features
ignored:
name: Ignored Tests
Expand Down

0 comments on commit 207fd32

Please sign in to comment.