From 9c2d78ed4fb6f9e7974e35d51b9dcf32bb832e8b Mon Sep 17 00:00:00 2001 From: Xuanwo Date: Mon, 19 Feb 2024 12:13:01 +0800 Subject: [PATCH] ci: Migrate check workflow to GHA Signed-off-by: Xuanwo --- .github/workflows/ci_check.yml | 35 ++++++++++++++++++++++++++++++++++ azure-pipelines.yml | 23 ---------------------- 2 files changed, 35 insertions(+), 23 deletions(-) create mode 100644 .github/workflows/ci_check.yml diff --git a/.github/workflows/ci_check.yml b/.github/workflows/ci_check.yml new file mode 100644 index 00000000..acf160e7 --- /dev/null +++ b/.github/workflows/ci_check.yml @@ -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 +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 diff --git a/azure-pipelines.yml b/azure-pipelines.yml index d24d26e0..565b46c9 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -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