Skip to content

Commit

Permalink
CI: drop actions-rs dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxVerevkin committed Jan 3, 2024
1 parent 75af59d commit d327d2f
Showing 1 changed file with 14 additions and 34 deletions.
48 changes: 14 additions & 34 deletions .github/workflows/rust.yml
Expand Up @@ -10,14 +10,9 @@ jobs:
- name: Get required packages
run: sudo apt-get update && sudo apt-get install libpango1.0-dev libxkbcommon-dev
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: check
- uses: dtolnay/rust-toolchain@stable
- name: Check
run: cargo check --all --all-features

test:
name: Test Suite
Expand All @@ -26,14 +21,9 @@ jobs:
- name: Get required packages
run: sudo apt-get update && sudo apt-get install libpango1.0-dev libxkbcommon-dev
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: test
- uses: dtolnay/rust-toolchain@stable
- name: Tests
run: cargo test --all --all-features

fmt:
name: Rustfmt
Expand All @@ -42,16 +32,11 @@ jobs:
- name: Get required packages
run: sudo apt-get update && sudo apt-get install libpango1.0-dev libxkbcommon-dev
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
- uses: dtolnay/rust-toolchain@stable
with:
command: fmt
args: --all -- --check
components: rustfmt
- name: Fmt check
run: rustfmt --check --edition 2021 $(fdfind -e rs)

clippy:
name: Clippy
Expand All @@ -60,13 +45,8 @@ jobs:
- name: Get required packages
run: sudo apt-get update && sudo apt-get install libpango1.0-dev libxkbcommon-dev
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add clippy
- uses: actions-rs/cargo@v1
- uses: dtolnay/rust-toolchain@stable
with:
command: clippy
args: -- -D warnings -A unknown-lints
components: clippy
- name: Clippy check
run: cargo clippy --all --all-features -- -D warnings -A unknown-lints

0 comments on commit d327d2f

Please sign in to comment.