forked from liuguangw/parakeet-crypto-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
18 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ env: | |
RUST_BACKTRACE: 1 | ||
|
||
jobs: | ||
build: | ||
testing: | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
|
@@ -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' |