From 695cb5ad42275f9199bdd7c7aa6ab84312834ce3 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Fri, 15 Nov 2019 00:09:38 +0100 Subject: Use different artifact name per platform --- .github/workflows/build.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to '.github') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 640924c9..7620a674 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,15 +22,21 @@ jobs: - name: Build todos example run: | cargo build --verbose --release --example todos - - name: Archive todos binary + - name: Archive todos binary (Windows) if: matrix.os == 'windows-latest' uses: actions/upload-artifact@v1 with: - name: todos + name: todos-windows path: target/release/examples/todos.exe - - name: Archive todos binary - if: matrix.os != 'windows-latest' + - name: Archive todos binary (Linux) + if: matrix.os == 'linux-latest' uses: actions/upload-artifact@v1 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 -- cgit