Use different artifact name per platform
This commit is contained in:
parent
d13b67ff51
commit
695cb5ad42
1 changed files with 11 additions and 5 deletions
16
.github/workflows/build.yml
vendored
16
.github/workflows/build.yml
vendored
|
|
@ -22,15 +22,21 @@ jobs:
|
||||||
- name: Build todos example
|
- name: Build todos example
|
||||||
run: |
|
run: |
|
||||||
cargo build --verbose --release --example todos
|
cargo build --verbose --release --example todos
|
||||||
- name: Archive todos binary
|
- name: Archive todos binary (Windows)
|
||||||
if: matrix.os == 'windows-latest'
|
if: matrix.os == 'windows-latest'
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: todos
|
name: todos-windows
|
||||||
path: target/release/examples/todos.exe
|
path: target/release/examples/todos.exe
|
||||||
- name: Archive todos binary
|
- name: Archive todos binary (Linux)
|
||||||
if: matrix.os != 'windows-latest'
|
if: matrix.os == 'linux-latest'
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: todos
|
name: todos-linux
|
||||||
|
path: target/release/examples/todos
|
||||||
|
- name: Archive todos binary (macOS)
|
||||||
|
if: matrix.os == 'macOS-latest'
|
||||||
|
uses: actions/upload-artifact@v1
|
||||||
|
with:
|
||||||
|
name: todos-macos
|
||||||
path: target/release/examples/todos
|
path: target/release/examples/todos
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue