Skip to content

Commit

Permalink
Merge pull request #87 from InCogNiTo124/ci-improvement
Browse files Browse the repository at this point in the history
Ci improvement (continued)
  • Loading branch information
Nukesor committed Sep 13, 2022
2 parents 4f6222d + 4f75159 commit dce08d6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 37 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@ jobs:
uses: actions/checkout@v3

- name: Setup Rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
override: true
components: llvm-tools-preview

- name: Install cargo-llvm-cov
Expand Down
23 changes: 5 additions & 18 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,31 +29,18 @@ jobs:
uses: actions/checkout@v3

- name: Setup Rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy

- name: cargo build
uses: actions-rs/cargo@v1
with:
command: build
run: cargo build

- name: cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
run: cargo fmt

- name: cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
run: cargo clippy -- -D warnings

- name: cargo clippy without default features
uses: actions-rs/cargo@v1
with:
command: clippy
args: --no-default-features -- -D warnings
run: cargo clippy --no-default-features -- -D warnings
21 changes: 5 additions & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,31 +51,20 @@ jobs:
uses: actions/checkout@v3

- name: Setup Rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
profile: minimal
target: ${{ matrix.target }}
targets: ${{ matrix.target }}
toolchain: ${{ matrix.toolchain }}
override: true
components: rustfmt, clippy

- name: cargo build
uses: actions-rs/cargo@v1
with:
command: build
args: --target=${{ matrix.target }}
run: cargo build --target=${{ matrix.target }}
if: ${{ !matrix.minimal_setup }}

- name: cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --target=${{ matrix.target }}
run: cargo test --target=${{ matrix.target }}
if: ${{ !matrix.minimal_setup }}

- name: cargo build without default features and without dev dependencies
uses: actions-rs/cargo@v1
with:
command: build
args: --release --target=${{ matrix.target }} --no-default-features
run: cargo build --release --target=${{ matrix.target }} --no-default-features
if: ${{ matrix.minimal_setup }}

0 comments on commit dce08d6

Please sign in to comment.