From 26769c0d74c20b9f88f39954955f9dc13bf92108 Mon Sep 17 00:00:00 2001 From: kuangjux <18630816527@163.com> Date: Wed, 15 May 2024 20:33:32 +0800 Subject: [PATCH] feat(ci): Add build test in ci. --- .github/workflows/build.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7e4199b..24ead6f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,4 +22,22 @@ jobs: - name: Run Clippy run: cargo clippy --all-targets --all-features -- -D warnings - name: Check code formatting - run: cargo fmt --all -- --check \ No newline at end of file + run: cargo fmt --all -- --check + + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + rust-toolchain: [stable] + steps: + - uses: actions/checkout@v2 + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: ${{ matrix.rust-toolchain }} + components: rust-src + override: true + - name: Build + run: cargo build +