From a4088a3a213d4a62efe1b0507f8b0bdc15deca42 Mon Sep 17 00:00:00 2001 From: jamjamjon <505024985@qq.com> Date: Sun, 14 Apr 2024 15:37:48 +0800 Subject: [PATCH 1/2] Update CI --- .github/workflows/rust-ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/rust-ci.yml b/.github/workflows/rust-ci.yml index 366b451..122499c 100644 --- a/.github/workflows/rust-ci.yml +++ b/.github/workflows/rust-ci.yml @@ -24,14 +24,14 @@ jobs: - uses: actions-rs/cargo@v1 with: command: check - args: --workspace --examples + args: --examples test: - name: Test Suite + name: Test runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, windows-latest, macOS-latest] + os: [ubuntu-latest, macOS-latest, windows-latest] rust: [stable] steps: - uses: actions/checkout@v2 @@ -43,7 +43,7 @@ jobs: - uses: actions-rs/cargo@v1 with: command: test - args: --workspace --examples + args: --examples fmt: name: Rustfmt @@ -75,4 +75,4 @@ jobs: - uses: actions-rs/cargo@v1 with: command: clippy - args: --workspace --tests --examples --all-targets --all-features -- -Dwarnings + args: --examples --all-targets --all-features -- -Dwarnings From fa4f7f17ed56208febcf9114d066405a020b7760 Mon Sep 17 00:00:00 2001 From: Jamjamjon <51357717+jamjamjon@users.noreply.github.com> Date: Sun, 14 Apr 2024 15:51:29 +0800 Subject: [PATCH 2/2] Update rust-ci.yml --- .github/workflows/rust-ci.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/rust-ci.yml b/.github/workflows/rust-ci.yml index 122499c..217e456 100644 --- a/.github/workflows/rust-ci.yml +++ b/.github/workflows/rust-ci.yml @@ -7,6 +7,22 @@ on: branches: [ "main" ] jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + rust: [stable] + + steps: + - uses: actions/checkout@v3 + - name: Build + run: cargo build --examples --verbose + - name: Run tests + run: cargo test --examples --verbose + - name: Run check + run: cargo check --examples --verbose + check: name: Check runs-on: ${{ matrix.os }}