Skip to content

Update actions/checkout action to v4 #1091

Update actions/checkout action to v4

Update actions/checkout action to v4 #1091

---
name: Direct Minimum Version
on:
pull_request:
push:
branches:
- "master"
- "rc"
- "hotfix-rc"
workflow_dispatch:
defaults:
run:
shell: bash
jobs:
direct-minimal-versions:
name: Check dependencies minimal versions for - ${{ matrix.settings.os }} - ${{ matrix.settings.target }}
runs-on: ${{ matrix.settings.os || 'ubuntu-latest' }}
strategy:
fail-fast: false
matrix:
settings:
#- os: macos-12
# target: x86_64-apple-darwin
#- os: macos-12
# target: aarch64-apple-darwin
- os: windows-2022
target: x86_64-pc-windows-msvc
- os: ubuntu-22.04
target: x86_64-unknown-linux-gnu
steps:
- name: Checkout
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
- name: Install rust
uses: dtolnay/rust-toolchain@439cf607258077187679211f12aa6f19af4a0af7 # stable
with:
toolchain: nightly
targets: ${{ matrix.settings.target }}
- name: Cache cargo registry
uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2.7.0
with:
key: dmv-${{ matrix.settings.target }}-cargo-${{ matrix.settings.os }}
- name: cargo check direct-minimal-versions
run: cargo check -Z direct-minimal-versions --all-features