From f46de3714aec3e9c66a2d2eab3f3bbc35e538621 Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Sun, 12 Feb 2023 14:48:28 +1100 Subject: [PATCH] Add step to relase-build to make sure it's runnable (#792) Signed-off-by: Jiahao XU --- .github/workflows/release-build.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index fa26c58e..bf7617ba 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -19,15 +19,15 @@ jobs: fail-fast: false matrix: include: - - { o: macos-latest, t: x86_64-apple-darwin } + - { o: macos-latest, t: x86_64-apple-darwin, r: true } - { o: macos-latest, t: aarch64-apple-darwin } - - { o: ubuntu-20.04, t: x86_64-unknown-linux-gnu } + - { o: ubuntu-20.04, t: x86_64-unknown-linux-gnu, r: true } - { o: ubuntu-20.04, t: armv7-unknown-linux-gnueabihf, c: true } - { o: ubuntu-20.04, t: aarch64-unknown-linux-gnu } - - { o: ubuntu-latest, t: x86_64-unknown-linux-musl } + - { o: ubuntu-latest, t: x86_64-unknown-linux-musl, r: true } - { o: ubuntu-latest, t: armv7-unknown-linux-musleabihf, c: true } - { o: ubuntu-latest, t: aarch64-unknown-linux-musl, c: true } - - { o: windows-latest, t: x86_64-pc-windows-msvc } + - { o: windows-latest, t: x86_64-pc-windows-msvc, r: true } - { o: windows-latest, t: aarch64-pc-windows-msvc } name: ${{ matrix.t }} @@ -52,6 +52,10 @@ jobs: - if: runner.os != 'Windows' run: ls -shal packages/ + - name: Ensure release binary is runnable + if: "matrix.r" + run: ./target/${{ matrix.t }}/release/cargo-binstall -V + - if: inputs.publish name: Upload to release uses: svenstaro/upload-release-action@v2