Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove actions-rs GitHub Actions #113

Merged
merged 2 commits into from
Oct 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 11 additions & 18 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,9 @@ jobs:
uses: actions/checkout@v3

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
uses: artichoke/setup-rust/build-and-test@v1
with:
toolchain: stable
profile: minimal

- name: Compile
run: cargo build --verbose
Expand Down Expand Up @@ -58,17 +57,16 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install Rust nightly toolchain
uses: actions-rs/toolchain@v1
- name: Install Rust toolchain
uses: artichoke/setup-rust/check-minimal-versions@v1
with:
toolchain: nightly
override: true
profile: minimal
toolchain: stable

- name: Generate minimal versions lockfile
run: cargo +nightly generate-lockfile -Z minimal-versions

- name: Check with minimal versions
run: |
cargo generate-lockfile -Z minimal-versions
cargo check --all-targets --profile=test
run: cargo check --all-targets --profile=test

rust:
name: Lint and format Rust
Expand All @@ -81,20 +79,15 @@ jobs:
uses: actions/checkout@v3

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
uses: artichoke/setup-rust/lint-and-format@v1
with:
toolchain: stable
profile: minimal
components: rustfmt, clippy

- name: Check formatting
run: cargo fmt -- --check --color=auto
run: cargo fmt --check

- name: Lint with Clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features --all-targets
run: cargo clippy --workspace --all-features --all-targets

ruby:
name: Lint and format Ruby
Expand Down