CI: upload binaries as long as build step succeeds

This commit is contained in:
cyqsimon
2023-10-09 01:47:01 +08:00
parent 6989ce222a
commit 4a27da5d56

View File

@@ -51,6 +51,7 @@ jobs:
run: cargo fmt --all -- --check
- name: Build
id: build
run: cargo build --verbose
# This is useful for debugging problems when the expected build artifacts
@@ -103,14 +104,14 @@ jobs:
path: src/tests/cases/snapshots/*.snap.new
- name: Upload unix binary
if: matrix.os != 'windows-latest'
if: ${{ matrix.os != 'windows-latest' && ( success() || steps.build.outcome == 'success' ) }}
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}-${{ matrix.rust }}
path: target/debug/bandwhich
- name: Upload windows binary
if: matrix.os == 'windows-latest'
if: ${{ matrix.os == 'windows-latest' && ( success() || steps.build.outcome == 'success' ) }}
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}-${{ matrix.rust }}