Skip to content

Commit

Permalink
Update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sisi0318 committed Jun 20, 2024
1 parent 3f558a9 commit 23dd7b9
Showing 1 changed file with 31 additions and 4 deletions.
35 changes: 31 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ env:
RUST_BACKTRACE: 1

jobs:
testing:
build:
strategy:
fail-fast: true
matrix:
Expand Down Expand Up @@ -41,8 +41,35 @@ jobs:
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Upload target directory
- name: List target directory
run: ls -R target
- name: Upload debug binaries
uses: actions/upload-artifact@v3
with:
name: build-artifacts
path: target/
name: debug-binaries
path: target/debug/**/*.exe # 适用于 Windows,如果是 Linux/MacOS,则为 target/debug/**/*
- name: Upload release binaries
uses: actions/upload-artifact@v3
with:
name: release-binaries
path: target/release/**/*.exe # 适用于 Windows,如果是 Linux/MacOS,则为 target/release/**/*

download:
runs-on: ubuntu-22.04

needs: build

steps:
- name: Download all Artifacts
uses: actions/download-artifact@v4.1.7
with:
path: downloaded-artifacts

- name: Download specific artifact
uses: actions/download-artifact@v4.1.7
with:
name: debug-binaries
path: downloaded-debug-binaries

- name: List downloaded files
run: ls -R downloaded-artifacts

0 comments on commit 23dd7b9

Please sign in to comment.