mirror of
https://github.com/pykeio/ort
synced 2026-04-25 16:34:55 +02:00
ci: replace actions-rs with dtolnay/rust-toolchain (#101)
This commit is contained in:
25
.github/workflows/code-quality.yml
vendored
25
.github/workflows/code-quality.yml
vendored
@@ -32,37 +32,24 @@ jobs:
|
||||
if: github.event.pull_request.draft == false
|
||||
steps:
|
||||
- name: Checkout sources
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v4
|
||||
- name: Install Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
uses: dtolnay/rust-toolchain@nightly
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: nightly # required for some rustfmt/clippy features
|
||||
override: true
|
||||
components: rustfmt, clippy
|
||||
- name: Check fmt
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: fmt
|
||||
args: --all -- --check
|
||||
run: cargo fmt --all -- --check
|
||||
- name: Run clippy
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: clippy
|
||||
args: --all-targets --features fetch-models
|
||||
run: cargo clippy --all-targets --features fetch-models
|
||||
coverage:
|
||||
name: Code coverage
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event.pull_request.draft == false
|
||||
steps:
|
||||
- name: Checkout sources
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v4
|
||||
- name: Install Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: stable
|
||||
override: true
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
- name: Get Rust version
|
||||
id: rust-version
|
||||
run: echo "::set-output name=version::$(cargo --version | cut -d ' ' -f 2)"
|
||||
|
||||
7
.github/workflows/test.yml
vendored
7
.github/workflows/test.yml
vendored
@@ -28,11 +28,10 @@ jobs:
|
||||
name: Run tests
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install stable Rust toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: stable
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
- name: Run tests
|
||||
@@ -56,7 +55,7 @@ jobs:
|
||||
os: macos-latest
|
||||
command: test
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Fix ring dependency for Windows ARM64
|
||||
if: matrix.platform.target == 'aarch64-pc-windows-msvc'
|
||||
shell: pwsh
|
||||
|
||||
@@ -1 +1 @@
|
||||
msrv = "1.56"
|
||||
msrv = "1.70"
|
||||
|
||||
Reference in New Issue
Block a user