Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pksunkara committed Apr 7, 2023
1 parent 14ba9b9 commit b6aef16
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 62 deletions.
5 changes: 5 additions & 0 deletions .cargo/config.toml
@@ -0,0 +1,5 @@
[alias]
format = "fmt"
format-check = "fmt -- --check"
lint = "clippy --all-targets --all-features --examples --tests -- -D warnings"
test-cover = "llvm-cov --all-features --lcov --output-path lcov.info"
43 changes: 11 additions & 32 deletions .github/workflows/ci.yml
Expand Up @@ -16,22 +16,19 @@ jobs:
rust: 1.56.0
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
rust: 1.51.0
rust: 1.56.0
- os: ubuntu-latest
target: i686-unknown-linux-gnu
rust: 1.51.0
rust: 1.56.0
- os: windows-latest
target: i686-pc-windows-msvc
rust: 1.51.0
rust: 1.56.0
- os: windows-latest
target: x86_64-pc-windows-msvc
rust: 1.51.0
rust: 1.56.0
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
rust: stable
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
rust: beta
runs-on: ${{ matrix.os }}
steps:
- name: Install rust
Expand All @@ -42,7 +39,7 @@ jobs:
target: ${{ matrix.target }}
override: true
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install linker
if: matrix.target == 'i686-unknown-linux-gnu'
run: |
Expand All @@ -52,23 +49,7 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: test
args: --target ${{ matrix.target }} --lib
nightly:
name: Nightly Tests
runs-on: ubuntu-latest
steps:
- name: Install rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- name: Checkout
uses: actions/checkout@v2
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: --lib
args: --all-features --target ${{ matrix.target }}
lint:
name: Linting (fmt + clippy)
runs-on: ubuntu-latest
Expand All @@ -77,18 +58,16 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
toolchain: 1.56.0
override: true
components: rustfmt, clippy
- name: Checkout
uses: actions/checkout@v2
- name: Clippy
uses: actions/checkout@v3
- name: Lint check
uses: actions-rs/cargo@v1
with:
command: clippy
args: --tests --examples
command: lint
- name: Format check
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
command: format-check
30 changes: 0 additions & 30 deletions Makefile

This file was deleted.

0 comments on commit b6aef16

Please sign in to comment.