Skip to content

Commit bc1f7e6

Browse files
committed
Downgrade dependencies when testing against older Rust versions
1 parent 110ec84 commit bc1f7e6

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/test.yml

+16
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ jobs:
4242
override: true
4343
profile: minimal
4444
default: true
45+
- name: Downgrade dependencies for older Rust versions
46+
run: |
47+
cargo update --package libc --precise 0.2.65
48+
cargo update --package cc --precise 1.0.3
49+
if: ${{ matrix.channel }} == 1.48.0
4550
- name: Test libffi-sys-rs
4651
run: |
4752
cd libffi-sys-rs
@@ -78,6 +83,12 @@ jobs:
7883
override: true
7984
profile: minimal
8085
default: true
86+
- name: Downgrade dependencies for older Rust versions
87+
shell: msys2 {0}
88+
run: |
89+
cargo update --package libc --precise 0.2.65
90+
cargo update --package cc --precise 1.0.3
91+
if: ${{ matrix.channel }} == 1.48.0
8192
- name: Test libffi-sys-rs
8293
shell: msys2 {0}
8394
run: |
@@ -229,6 +240,11 @@ jobs:
229240
echo "CARGO_TARGET_${TARGET_TRIPLE}_RUNNER=qemu-$QEMU_ARCH -L /usr/$GCC_ARCH-linux-$ABI/" >> $GITHUB_ENV
230241
fi
231242
if: ${{ 'x86_64-unknown-linux-gnu' != matrix.target }}
243+
- name: Downgrade dependencies for older Rust versions
244+
run: |
245+
cargo update --package libc --precise 0.2.65
246+
cargo update --package cc --precise 1.0.3
247+
if: ${{ matrix.channel }} == 1.48.0
232248
- name: Test libffi-sys-rs
233249
run: |
234250
cd libffi-sys-rs

0 commit comments

Comments
 (0)