-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update CI to actions/checkout@v3 and the 1.48 pins.
- Loading branch information
1 parent
4dbdfcb
commit a0d1cca
Showing
1 changed file
with
34 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ jobs: | |
name: Rustfmt | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- uses: ./.github/actions/install-rust | ||
|
@@ -41,7 +41,7 @@ jobs: | |
# -D warnings is commented out in our install-rust action; re-add it here. | ||
RUSTFLAGS: -D warnings | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- uses: ./.github/actions/install-rust | ||
|
@@ -87,7 +87,16 @@ jobs: | |
- name: Use specific dependency versions for Rust 1.48 compatibility. | ||
if: matrix.rust == '1.48' | ||
run: cargo update --package=once_cell --precise 1.14.0 | ||
run: | | ||
cargo update --package=once_cell --precise 1.14.0 | ||
cargo update --package=tempfile --precise=3.4.0 | ||
cargo update [email protected] --precise 1.0.6 | ||
cargo update --package=flate2 --precise=1.0.25 | ||
for crate in test-crates/*; do | ||
cd $crate | ||
cargo update [email protected] --precise 1.0.6 | ||
cd - >/dev/null | ||
done | ||
- run: cargo check --workspace --release -vv | ||
- run: cargo check --workspace --release -vv --features=all-apis | ||
|
@@ -140,7 +149,7 @@ jobs: | |
# -D warnings is commented out in our install-rust action; re-add it here. | ||
RUSTFLAGS: -D warnings | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- uses: ./.github/actions/install-rust | ||
|
@@ -160,7 +169,7 @@ jobs: | |
rust: nightly-2023-07-03 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- uses: ./.github/actions/install-rust | ||
|
@@ -187,7 +196,7 @@ jobs: | |
rust: nightly-2023-07-03 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- uses: ./.github/actions/install-rust | ||
|
@@ -377,7 +386,7 @@ jobs: | |
os: windows-2019 | ||
rust: nightly-2023-07-03 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- uses: ./.github/actions/install-rust | ||
|
@@ -390,7 +399,7 @@ jobs: | |
rustup target add ${{ matrix.target }} | ||
if: matrix.target != '' | ||
|
||
- uses: actions/cache@v2 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ${{ runner.tool_cache }}/qemu | ||
key: qemu-${{ matrix.target }}-${{ env.QEMU_BUILD_VERSION }}-patched | ||
|
@@ -438,6 +447,19 @@ jobs: | |
ninja -C build install | ||
if: matrix.qemu != '' && matrix.os == 'ubuntu-latest' | ||
|
||
- name: Use specific dependency versions for Rust 1.48 compatibility. | ||
if: matrix.rust == '1.48' | ||
run: | | ||
cargo update --package=once_cell --precise 1.14.0 | ||
cargo update --package=tempfile --precise=3.4.0 | ||
cargo update [email protected] --precise 1.0.6 | ||
cargo update --package=flate2 --precise=1.0.25 | ||
for crate in test-crates/*; do | ||
cd $crate | ||
cargo update [email protected] --precise 1.0.6 | ||
cd - >/dev/null | ||
done | ||
- run: | | ||
# Run the tests. | ||
cargo test --verbose --features=all-impls,all-apis --release --workspace -- --nocapture | ||
|
@@ -523,7 +545,7 @@ jobs: | |
RUSTFLAGS: -D warnings | ||
QEMU_BUILD_VERSION: 7.0.0 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- uses: ./.github/actions/install-rust | ||
|
@@ -536,7 +558,7 @@ jobs: | |
rustup target add ${{ matrix.target }} | ||
if: matrix.target != '' | ||
|
||
- uses: actions/cache@v2 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ${{ runner.tool_cache }}/qemu | ||
key: qemu-${{ matrix.target }}-${{ env.QEMU_BUILD_VERSION }}-patched | ||
|
@@ -632,7 +654,7 @@ jobs: | |
CARGO_TARGET_MIPS64EL_UNKNOWN_LINUX_GNUABI64_RUSTFLAGS: --cfg rustix_use_experimental_asm | ||
QEMU_BUILD_VERSION: 7.0.0 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- uses: ./.github/actions/install-rust | ||
|
@@ -645,7 +667,7 @@ jobs: | |
rustup target add ${{ matrix.target }} | ||
if: matrix.target != '' | ||
|
||
- uses: actions/cache@v2 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ${{ runner.tool_cache }}/qemu | ||
key: qemu-${{ matrix.target }}-${{ env.QEMU_BUILD_VERSION }}-patched | ||
|