mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-22 13:38:43 +00:00
Merge pull request #212 from NobodyXu/speedup-ci
Speedup CI: Build cargo-binstall in debug mode for PR
This commit is contained in:
commit
66ef2277e0
1 changed files with 14 additions and 0 deletions
|
@ -88,14 +88,28 @@ jobs:
|
||||||
|
|
||||||
- name: Build release
|
- name: Build release
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
|
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||||
with:
|
with:
|
||||||
command: build
|
command: build
|
||||||
args: --target ${{ matrix.target }} --release
|
args: --target ${{ matrix.target }} --release
|
||||||
use-cross: ${{ matrix.use-cross }}
|
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
|
- name: Copy and rename utility
|
||||||
|
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||||
run: cp target/${{ matrix.target }}/release/${{ matrix.output }} ${{ matrix.output }}
|
run: cp target/${{ matrix.target }}/release/${{ matrix.output }} ${{ matrix.output }}
|
||||||
|
|
||||||
|
- name: Copy and rename utility
|
||||||
|
if: ${{ ! startsWith(github.ref, 'refs/tags/v') }}
|
||||||
|
run: cp target/${{ matrix.target }}/debug/${{ matrix.output }} ${{ matrix.output }}
|
||||||
|
|
||||||
- name: Test (Unix)
|
- name: Test (Unix)
|
||||||
if: ${{ matrix.test && matrix.os != 'windows-latest' }}
|
if: ${{ matrix.test && matrix.os != 'windows-latest' }}
|
||||||
run: ./ci-scripts/run_tests_unix.sh ${{ matrix.output }}
|
run: ./ci-scripts/run_tests_unix.sh ${{ matrix.output }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue