From 3f558a9998f19d4f30fd0991c43e6598c9b7ee04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=80=9D=E6=80=9D?= <71646091+sisi0318@users.noreply.github.com> Date: Thu, 20 Jun 2024 10:53:08 +0800 Subject: [PATCH] Update test.yml --- .github/workflows/test.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c95ffcb..b50d74f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,7 +5,6 @@ on: branches: [ "main" ] pull_request: branches: [ "main" ] - # 可手动执行action workflow_dispatch: env: @@ -19,7 +18,7 @@ jobs: matrix: os: ["ubuntu-22.04", "windows-2022"] - runs-on: "${{ matrix.os }}" + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 @@ -42,3 +41,8 @@ jobs: run: cargo build --verbose - name: Run tests run: cargo test --verbose + - name: Upload target directory + uses: actions/upload-artifact@v3 + with: + name: build-artifacts + path: target/