mirror of
https://github.com/sharkdp/hyperfine.git
synced 2024-10-26 22:21:58 +03:00
Fix pipeline!
This commit is contained in:
parent
8ad94d6fad
commit
21f1081e73
19
.github/workflows/CICD.yml
vendored
19
.github/workflows/CICD.yml
vendored
@ -13,33 +13,22 @@ on:
|
|||||||
- '*'
|
- '*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ensure_cargo_fmt:
|
|
||||||
name: Ensure 'cargo fmt' has been run
|
|
||||||
runs-on: ubuntu-20.04
|
|
||||||
steps:
|
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
|
||||||
with:
|
|
||||||
components: rustfmt
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- run: cargo fmt -- --check
|
|
||||||
- name: Ensure MSRV is set in `clippy.toml`
|
|
||||||
run: grep "^msrv = \"${{ env.MIN_SUPPORTED_RUST_VERSION }}\"\$" clippy.toml
|
|
||||||
|
|
||||||
min_version:
|
min_version:
|
||||||
name: Minimum supported rust version
|
name: Minimum supported rust version
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout source code
|
- name: Checkout source code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Get the MSRV from the package metadata
|
- name: Get the MSRV from the package metadata
|
||||||
id: msrv
|
id: msrv
|
||||||
run: cargo metadata --no-deps --format-version 1 | jq -r '"version=" + (.packages[] | select(.name = "bat").rust_version)' >> $GITHUB_OUTPUT
|
run: cargo metadata --no-deps --format-version 1 | jq -r '"version=" + (.packages[] | select(.name = "hyperfine").rust_version)' >> $GITHUB_OUTPUT
|
||||||
- name: Install rust toolchain (v${{ steps.msrv.outputs.version }})
|
- name: Install rust toolchain (v${{ steps.msrv.outputs.version }})
|
||||||
uses: dtolnay/rust-toolchain@master
|
uses: dtolnay/rust-toolchain@master
|
||||||
with:
|
with:
|
||||||
toolchain: ${{ steps.msrv.outputs.version }}
|
toolchain: ${{ steps.msrv.outputs.version }}
|
||||||
components: clippy
|
components: clippy, rustfmt
|
||||||
|
- name: Run cargo fmt
|
||||||
|
run: cargo fmt -- --check
|
||||||
- name: Run clippy (on minimum supported rust version to prevent warnings we can't fix)
|
- name: Run clippy (on minimum supported rust version to prevent warnings we can't fix)
|
||||||
run: cargo clippy --locked --all-targets ${{ env.MSRV_FEATURES }}
|
run: cargo clippy --locked --all-targets ${{ env.MSRV_FEATURES }}
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
|
@ -8,10 +8,9 @@ name = "hyperfine"
|
|||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
repository = "https://github.com/sharkdp/hyperfine"
|
repository = "https://github.com/sharkdp/hyperfine"
|
||||||
version = "1.16.0"
|
version = "1.16.0"
|
||||||
rust-version = "1.60.0"
|
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
build = "build.rs"
|
build = "build.rs"
|
||||||
rust-version = "1.62"
|
rust-version = "1.62.0"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
# Use the nightly feature windows_process_extensions_main_thread_handle
|
# Use the nightly feature windows_process_extensions_main_thread_handle
|
||||||
|
Loading…
Reference in New Issue
Block a user