Build cargo-binstall in debug mode for PR

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-07-14 21:32:59 +10:00
parent a672f00575
commit 2936f2c3f1
No known key found for this signature in database
GPG key ID: 591C0B03040416D6

View file

@ -88,11 +88,20 @@ jobs:
- name: Build release
uses: actions-rs/cargo@v1
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
with:
command: build
args: --target ${{ matrix.target }} --release
use-cross: ${{ matrix.use-cross }}
- name: Build debug
uses: actions-rs/cargo@v1
if: ${{ ! startsWith(github.ref, 'refs/tags/v') }}
with:
command: build
args: --target ${{ matrix.target }}
use-cross: ${{ matrix.use-cross }}
- name: Copy and rename utility
run: cp target/${{ matrix.target }}/release/${{ matrix.output }} ${{ matrix.output }}