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

ci: Migrate check workflow to GHA #213

Merged
merged 1 commit into from
Feb 19, 2024
Merged
Show file tree
Hide file tree
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
35 changes: 35 additions & 0 deletions .github/workflows/ci_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Check

on:
push:
branches:
- master
pull_request:
branches:
- master

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
Berrysoft marked this conversation as resolved.
Show resolved Hide resolved
cancel-in-progress: true

env:
RUST_BACKTRACE: 1

jobs:
check:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
steps:
- uses: actions/checkout@v4
- name: Setup Rust Toolchain
run: |
rustup toolchain install nightly
rustup +nightly component add clippy
- name: Check clippy
run: |
cargo +nightly clippy --all-features --all-targets -- -Dwarnings
- name: Check Docs
run: |
cargo +nightly doc --workspace --all-features --no-deps
23 changes: 0 additions & 23 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,26 +90,3 @@ jobs:
# - script: |
# cargo test --workspace --features all
# displayName: TestStable

- job: Clippy_Doc
strategy:
matrix:
windows:
image: windows-latest
linux:
image: ubuntu-latest
macos:
image: macOS-latest
pool:
vmImage: $(image)

steps:
- script: |
rustup toolchain install nightly
cargo +nightly doc --workspace --all-features --no-deps
displayName: Build docs

- script: |
rustup +nightly component add clippy
cargo +nightly clippy --all-features --all-targets -- -Dwarnings
displayName: Run clippy