Skip to content

Commit

Permalink
Update CI to actions/checkout@v3 and the 1.48 pins.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Jul 5, 2023
1 parent 4dbdfcb commit 89f93ec
Showing 1 changed file with 34 additions and 12 deletions.
46 changes: 34 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 --package=io-lifetimes --precise 0.7.5
cargo update --package=flate2 --precise=1.0.25
for crate in test-crates/*; do
cd $crate
cargo update --package=io-lifetimes --precise 0.7.5
cd - >/dev/null
done
- run: cargo check --workspace --release -vv
- run: cargo check --workspace --release -vv --features=all-apis
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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 --package=io-lifetimes --precise 0.7.5
cargo update --package=flate2 --precise=1.0.25
for crate in test-crates/*; do
cd $crate
cargo update --package=io-lifetimes --precise 0.7.5
cd - >/dev/null
done
- run: |
# Run the tests.
cargo test --verbose --features=all-impls,all-apis --release --workspace -- --nocapture
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 89f93ec

Please sign in to comment.