Skip to content

Commit

Permalink
ci: replace actions-rs with dtolnay/rust-toolchain (pykeio#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
ikrivosheev authored Oct 17, 2023
1 parent 826158a commit 5133e37
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 24 deletions.
25 changes: 6 additions & 19 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion clippy.toml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
msrv = "1.56"
msrv = "1.70"

0 comments on commit 5133e37

Please sign in to comment.