Skip to content

Commit

Permalink
Merge pull request #254 from LingMan/ci
Browse files Browse the repository at this point in the history
Polish CI
  • Loading branch information
pksunkara committed Apr 15, 2023
2 parents 2f3fc27 + 682164a commit d77d5cd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 20 deletions.
4 changes: 2 additions & 2 deletions .cargo/config.toml
@@ -1,5 +1,5 @@
[alias]
format = "fmt"
format-check = "fmt -- --check"
lint = "clippy --all-targets --all-features --examples --tests -- -D warnings"
format-check = "fmt --check"
lint = "clippy --all-targets --all-features -- -D warnings"
test-cover = "llvm-cov --all-features --lcov --output-path lcov.info"
25 changes: 7 additions & 18 deletions .github/workflows/ci.yml
Expand Up @@ -32,12 +32,10 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Install rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
targets: ${{ matrix.target }}
- name: Checkout
uses: actions/checkout@v3
- name: Install linker
Expand All @@ -46,28 +44,19 @@ jobs:
sudo apt-get update
sudo apt-get install gcc-multilib
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --target ${{ matrix.target }}
run: cargo test --all-features --target ${{ matrix.target }}

lint:
name: Linting (fmt + clippy)
runs-on: ubuntu-latest
steps:
- name: Install rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: 1.59.0
override: true
components: rustfmt, clippy
- name: Checkout
uses: actions/checkout@v3
- name: Lint check
uses: actions-rs/cargo@v1
with:
command: lint
run: cargo lint
- name: Format check
uses: actions-rs/cargo@v1
with:
command: format-check
run: cargo format-check

0 comments on commit d77d5cd

Please sign in to comment.