summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorcyqsimon <28627918+cyqsimon@users.noreply.github.com>2023-10-09 01:47:01 +0800
committercyqsimon <28627918+cyqsimon@users.noreply.github.com>2023-10-09 01:47:01 +0800
commit4a27da5d5627c7eff0ac8c17c6c031db1879b6d1 (patch)
tree0a85945b758407605ac7310656d76bd6c065c13a /.github
parent6989ce222a9c8fb8f723420a8e4a64c9e4fe2324 (diff)
CI: upload binaries as long as build step succeeds
Diffstat (limited to '.github')
-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 }}