Skip to content

Commit

Permalink
Update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sisi0318 authored Jun 20, 2024
1 parent f742dd2 commit 3f558a9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# 可手动执行action
workflow_dispatch:

env:
Expand All @@ -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
Expand All @@ -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/

0 comments on commit 3f558a9

Please sign in to comment.