Skip to content

Commit

Permalink
ci: Migrate check workflow to GHA
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <[email protected]>
  • Loading branch information
Xuanwo committed Feb 19, 2024
1 parent e5fa6a3 commit 6b5922c
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 23 deletions.
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 }}
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 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

0 comments on commit 6b5922c

Please sign in to comment.