Skip to content

Commit c382fd1

Browse files
committed
Don't use --all-targets when testing MSRV
1 parent 44a0fae commit c382fd1

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/actions/build/action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ inputs:
2121
required: false
2222
default: -D warnings
2323

24+
TARGETS:
25+
description: 'Build all targets or only default?'
26+
required: fase
27+
default: "--all-targets"
28+
2429
TOOL:
2530
description: 'Tool used to involve the BUILD command, can be cargo or cross'
2631
required: false
@@ -62,7 +67,7 @@ runs:
6267
6368
- name: build
6469
shell: bash
65-
run: ${{ inputs.TOOL }} ${{ inputs.BUILD }} ${{ inputs.ZFLAGS }} --target ${{ inputs.TARGET }} --all-targets --all-features
70+
run: ${{ inputs.TOOL }} ${{ inputs.BUILD }} ${{ inputs.ZFLAGS }} --target ${{ inputs.TARGET }} ${{ inputs.TARGETS }} --all-features
6671

6772
- name: doc
6873
if: inputs.NODOC == 'false'

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ jobs:
276276
NOCLIPPY: true
277277
NODOC: true
278278
NOHACK: true
279+
TARGETS: ""
279280
strategy:
280281
fail-fast: false
281282
matrix:

0 commit comments

Comments
 (0)