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 23dd7b9 commit 35d7de6
Showing 1 changed file with 18 additions and 22 deletions.
40 changes: 18 additions & 22 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:
build:
testing:
strategy:
fail-fast: true
matrix:
Expand Down Expand Up @@ -47,29 +47,25 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: debug-binaries
path: target/debug/**/*.exe # 适用于 Windows,如果是 Linux/MacOS,则为 target/debug/**/*
path: |
target/debug/**/*.exe
target/debug/**/*
if: runner.os == 'Windows'
- uses: actions/upload-artifact@v3
with:
name: debug-binaries
path: target/debug/**/*
if: runner.os != 'Windows'
- 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/[email protected]
with:
path: downloaded-artifacts

- name: Download specific artifact
uses: actions/[email protected]
path: |
target/release/**/*.exe
target/release/**/*
if: runner.os == 'Windows'
- uses: actions/upload-artifact@v3
with:
name: debug-binaries
path: downloaded-debug-binaries

- name: List downloaded files
run: ls -R downloaded-artifacts
name: release-binaries
path: target/release/**/*
if: runner.os != 'Windows'

0 comments on commit 35d7de6

Please sign in to comment.