summaryrefslogtreecommitdiffstats
path: root/.github/workflows/ci.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/ci.yaml')
-rw-r--r--.github/workflows/ci.yaml5
1 files changed, 3 insertions, 2 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 4654c51..3177e3c 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -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 }}