Skip to content

Commit 6083aa5

Browse files
add aggregation step
1 parent ac32f43 commit 6083aa5

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/release.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ jobs:
2323
runs-on: ${{ matrix.os }}
2424
steps:
2525
- uses: actions/checkout@v4
26+
- uses: actions/cache@v3
27+
with:
28+
path: |
29+
~/.cargo/registry
30+
~/.cargo/git
31+
target
32+
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock', 'rust-toolchain.toml') }}-1
2633
- name: Setup environment variables
2734
run: |
2835
echo "RUSTFLAGS=--remap-path-prefix=${GITHUB_WORKSPACE}=/builds/dfinity" >> $GITHUB_ENV
@@ -46,6 +53,15 @@ jobs:
4653
name: icp-cli-network-launcher-${{ matrix.relname }}-${{ env.VER }}
4754
path: dist/icp-cli-network-launcher-${{ matrix.relname }}-${{ env.VER }}.tar.gz
4855

56+
aggregate:
57+
name: build:required
58+
runs-on: ubuntu-latest
59+
needs: build
60+
if: ${{ always() }}
61+
steps:
62+
- if: ${{ needs.build.result != 'success' }}
63+
run: exit 1
64+
4965
release:
5066
name: Create release
5167
if: ${{ github.ref_type == 'tag' }}

0 commit comments

Comments
 (0)