From d3176c7e09ea28ba7a0d8d15f003c808abf1ef8c Mon Sep 17 00:00:00 2001 From: amikai Date: Thu, 10 Oct 2024 12:04:55 +0800 Subject: [PATCH] ci: add the ci for testing --- .github/workflows/ci.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..0515d92 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,30 @@ +name: ci + +on: + push: + branches: + - "master" + tags: + - "v*.*.*" + + +jobs: + build-test: + strategy: + matrix: + rust: [stable] + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.os }} + name: test + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Install Rust + uses: dtolnay/rust-toolchain@master + with: + toolchain: ${{ matrix.rust }} + + - name: Unit test + run: | + cargo test