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/