Skip to content

Commit 3e9d446

Browse files
committed
pin older errno in old-Rust CI jobs
1 parent 7382df0 commit 3e9d446

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.github/workflows/test.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ jobs:
118118
cd signal-hook-registry
119119
sed -i -e '/signal-hook =/d' Cargo.toml
120120
sed -i -e 's/libc = "^0.2"/libc = "=0.2.156"/' Cargo.toml
121+
sed -i -e 's/errno = ">=0.2, <0.4"/errno = "0.2"/' Cargo.toml
121122
cargo check
122123
123124
ancient:
@@ -143,6 +144,7 @@ jobs:
143144
run: |
144145
rm Cargo.lock
145146
sed -i -e 's/libc = "^0.2"/libc = "=0.2.156"/' Cargo.toml
147+
sed -i -e 's/errno = ">=0.2, <0.4"/errno = "0.2"/' signal-hook-registry/Cargo.toml
146148
cargo update
147149
cargo check --no-default-features
148150

ci-check.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ rm -f Cargo.lock
1212
if [ "$RUST_VERSION" = 1.36.0 ] || [ "$RUST_VERSION" = 1.40.0 ] ; then
1313
sed -i -e 's/libc = "^0.2"/libc = "=0.2.156"/' Cargo.toml
1414
sed -i -e 's/cc = { version = "^1"/cc = { version = "=1.0.79"/' Cargo.toml
15+
sed -i -e 's/errno = ">=0.2, <0.4"/errno = "0.2"/' signal-hook-registry/Cargo.toml
1516
fi
1617

1718
cargo build --all --exclude signal-hook-async-std --exclude signal-hook-tokio

0 commit comments

Comments
 (0)